iPerlSpecial: MettlerToledo.Standard.BalanceDev bug fix, ver.2.5.272

This commit is contained in:
Milan Hanajik
2016-04-22 11:13:52 +02:00
parent a41d0517d2
commit 7f3d1bb199
3 changed files with 4 additions and 15 deletions
@@ -325,7 +325,7 @@ namespace TBF.BenchControl.MettlerToledo.Standard
msrmntState = MsrmntState.Valid;
log.InfoFormat("{0} - Balance response = \"{1}<cr><lf>\", Mass = {2}", Name, received, mass);
}
else if (fields.Length == 4 && fields[1].Equals("S") &&
else if (fields.Length == 4 && (fields[1].Equals("S") || fields[1].Equals("D")) &&
float.TryParse(fields[2],
NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign,
CultureInfo.InvariantCulture,