Skip to content

Commit 19a3b6e

Browse files
authored
Allow response transaction_id 0. (#2844)
1 parent 3e2fcc4 commit 19a3b6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pymodbus/transaction/transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ async def execute(self, no_response_expected: bool, request: ModbusPDU) -> Modbu
180180
raise ModbusIOException(
181181
f"ERROR: request uses device id={request.dev_id} but received {response.dev_id}."
182182
)
183-
if response.transaction_id != request.transaction_id:
183+
if response.transaction_id and response.transaction_id != request.transaction_id:
184184
raise ModbusIOException(
185185
f"ERROR: request uses transaction id={request.transaction_id} but received {response.transaction_id}."
186186
)

0 commit comments

Comments
 (0)