Various changes done when adding new components (parents, etc.)
This commit is contained in:
@@ -122,7 +122,9 @@ namespace TBF.BenchControl.MettlerToledo.Standard
|
||||
|
||||
public void Initialize()
|
||||
{
|
||||
base.Initalize();
|
||||
if (balanceCfg.DebugLevel == DebugMode.Simulate) return;
|
||||
|
||||
base.Initalize();
|
||||
|
||||
if (balanceCfg.CalibValidDate != DateTime.MinValue && balanceCfg.CalibValidDate.Date < DateTime.Now.Date)
|
||||
{
|
||||
@@ -133,8 +135,6 @@ namespace TBF.BenchControl.MettlerToledo.Standard
|
||||
msrmntState = MsrmntState.Failed; /// Data not valid yet
|
||||
MsrmntTime = 0;
|
||||
|
||||
if (balanceCfg.DebugLevel == DebugMode.Simulate) return;
|
||||
|
||||
stringBuilder = new StringBuilder(40);
|
||||
string comPortName = "COM" + balanceCfg.ComPortNr.ToString();
|
||||
serialPort = new SerialPort(comPortName, balanceCfg.BaudRate, balanceCfg.Parity, balanceCfg.DataBits, balanceCfg.StopBits);
|
||||
|
||||
Reference in New Issue
Block a user