diff --git a/modbus_tk/modbus_rtu.py b/modbus_tk/modbus_rtu.py index 11c9ee8..1b16eeb 100644 --- a/modbus_tk/modbus_rtu.py +++ b/modbus_tk/modbus_rtu.py @@ -274,6 +274,8 @@ def _do_run(self): # Read rest of the request while True: + # Add delays to avoid corrupting packages. (For use with FT232-RS485 device.) + time.sleep(0.001) try: read_bytes = self._serial.read(128) if not read_bytes: