Skip to content

Commit c0b609a

Browse files
author
krish_trip
committed
BEDGE-2723 - added code to always open rtu server before starting the modbus_tk thread
1 parent eb7f96c commit c0b609a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modbus_simulator/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ def _create_modbus_device(self):
299299
self.slave = ListView(adapter=adapter)
300300

301301
self._serial_settings_changed = False
302+
elif self.active_server == "rtu":
303+
self.modbus_device._serial.open()
302304

303305
def start_server(self, btn):
304306
if btn.state == "down":

0 commit comments

Comments
 (0)