Skip to content

Commit

Permalink
Use source_address in serial.
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen committed Jul 25, 2023
1 parent 01882f9 commit ebf584e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymodbus/transport/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def init_setup_connect_listen(self) -> None:
self.call_create = lambda: create_serial_connection(
self.loop,
self.handle_new_connection,
self.comm_params.host,
self.comm_params.source_address[0],
baudrate=self.comm_params.baudrate,
bytesize=self.comm_params.bytesize,
parity=self.comm_params.parity,
Expand Down

0 comments on commit ebf584e

Please sign in to comment.