fix machine serial try/catch error
This commit is contained in:
@@ -560,12 +560,19 @@ namespace Thermo.Active.Utils
|
||||
{
|
||||
machineNumber = "0000";
|
||||
}
|
||||
if (containsLetters)
|
||||
// Convert ASCII string to a single INT
|
||||
intMachineVal = SupportFunctions.ConvertAsciiStringToInt(machineNumber);
|
||||
else
|
||||
// Convert string of digits to a INT
|
||||
intMachineVal = int.Parse(machineNumber);
|
||||
try
|
||||
{
|
||||
if (containsLetters)
|
||||
// Convert ASCII string to a single INT
|
||||
intMachineVal = SupportFunctions.ConvertAsciiStringToInt(machineNumber);
|
||||
else
|
||||
// Convert string of digits to a INT
|
||||
intMachineVal = int.Parse(machineNumber);
|
||||
}
|
||||
catch
|
||||
{
|
||||
intMachineVal = 0;
|
||||
}
|
||||
}
|
||||
|
||||
//----- Chipher Private Class ---------------------------------
|
||||
|
||||
Reference in New Issue
Block a user