Commit 56a92be3 authored by Javier Ortega's avatar Javier Ortega
Browse files

fix sleep tx

parent e23cac27
......@@ -600,7 +600,9 @@ class Modbus:
:param num_byte: Number of bytes to write
:type num_byte: integer
"""
time.sleep(self.get_time_transfer(num_bytes))
second = self.get_time_transfer(num_bytes)
if second >= 0:
time.sleep(second)
def rtu_to_ascii(self, tx, colon = False, lrc = False, carriage_return = False, line_feed = False):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment