Skip to content

Commit b43e5db

Browse files
use proper time sleep function in serial _uart_read function
1 parent c36d586 commit b43e5db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

umodbus/serial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _uart_read(self) -> bytearray:
175175
break
176176

177177
# wait for the maximum time between two frames
178-
time.sleep(self._t35chars)
178+
time.sleep_us(self._t35chars)
179179

180180
return response
181181

0 commit comments

Comments
 (0)