Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MID 0101 Fix SpeedOrPressStatus Converter #81

Closed
tecnologic-srl-roberto-guerzoni opened this issue Oct 20, 2021 · 0 comments
Closed

MID 0101 Fix SpeedOrPressStatus Converter #81

tecnologic-srl-roberto-guerzoni opened this issue Oct 20, 2021 · 0 comments
Labels

Comments

@tecnologic-srl-roberto-guerzoni
Copy link

tecnologic-srl-roberto-guerzoni commented Oct 20, 2021

Hi, trying the use of MID 0101 I noticed that the data conversion for the spindles is wrong.

Fix

public override IEnumerable<SpindleOrPressStatus> Convert(string value)
{
    for (int i = 0; i < value.Length; i += 18)
    {
        var spindleValue = value.Substring(i , 18);  //  value.Substring(i * 18, 18);
        ...
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants