diff --git a/Modbus.Net/Modbus.Net.CodeGenerator/ConnectorWithControllerByteArrayCodeGenerator.cs b/Modbus.Net/Modbus.Net.CodeGenerator/ConnectorWithControllerByteArrayCodeGenerator.cs index 74dcb4f..1eb9c69 100644 --- a/Modbus.Net/Modbus.Net.CodeGenerator/ConnectorWithControllerByteArrayCodeGenerator.cs +++ b/Modbus.Net/Modbus.Net.CodeGenerator/ConnectorWithControllerByteArrayCodeGenerator.cs @@ -112,7 +112,7 @@ namespace Modbus.Net IDisposable asyncLock = null; try { - if (!Controller.IsSending) + if (Controller.IsSending != true) { Controller.SendStart(); }