Skip to content

Commit 36f48d9

Browse files
committed
modbus.Master: Swap the positions of the addr and size parameters.
1 parent a1885b8 commit 36f48d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/protocol/comm_modbus_master_rtu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def master_thread(*args):
2626
while not app.need_exit():
2727
hr = master.read_holding_registers(
2828
RTU_SLAVE_ID,
29-
REGISTERS_NUMBER,
3029
REGISTERS_START_ADDRESS,
30+
REGISTERS_NUMBER,
3131
2000
3232
)
3333
if len(hr) == 0:

0 commit comments

Comments
 (0)