Skip to content

Commit ea4705e

Browse files
author
sanjay
committed
PR #471 Fix transaction tests
1 parent 7ac9432 commit ea4705e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymodbus/transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def _transact(self, packet, response_length, full=False, broadcast=False):
228228
_logger.debug("Changing transaction state from 'SENDING' "
229229
"to 'WAITING FOR REPLY'")
230230
self.client.state = ModbusTransactionState.WAITING_FOR_REPLY
231-
if self.client.handle_local_echo:
231+
if self.client.handle_local_echo is True:
232232
local_echo_packet = self._recv(size, full)
233233
if local_echo_packet != packet:
234234
return b'', "Wrong local echo"

0 commit comments

Comments
 (0)