Skip to content

Commit aa1fc3b

Browse files
committed
fix bugs
1 parent 35b49b1 commit aa1fc3b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

SCADA/Program/ModbusDriver/ModbusRTUDriver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public bool IsClosed
4343
{
4444
get
4545
{
46-
return _serialPort == null ? false : _serialPort.IsOpen == false;
46+
return _serialPort == null || _serialPort.IsOpen == false;
4747
}
4848
}
4949

SCADA/dll/ModbusDriver.dll

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)