Component updated - displays pump power in %, crash when closing opto-serial port avoided, etc., ver. 2.12.492
This commit is contained in:
@@ -474,10 +474,17 @@ namespace TBF.BenchControl.WaterMeters.iPerl
|
||||
|
||||
public void StopDevice()
|
||||
{
|
||||
if (DebugLevel == DebugMode.Normal && optoSerialPort != null)
|
||||
{
|
||||
optoSerialPort.Close();
|
||||
}
|
||||
try
|
||||
{
|
||||
if (DebugLevel == DebugMode.Normal && optoSerialPort != null)
|
||||
{
|
||||
optoSerialPort.Close();
|
||||
optoSerialPort = null;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user