Skip to content

Commit

Permalink
improve rx speed
Browse files Browse the repository at this point in the history
  • Loading branch information
nurazur committed Jul 16, 2023
1 parent 7b2e81c commit b804747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/tino2cal_v01.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def crc16(data):
def read_raw(port):
raw_line=""
if port.inWaiting() > 0:
time.sleep(0.05)
#time.sleep(0.05)
if not monitor_mode:
raw_line = port.read(port.inWaiting())
if b'\r\n' not in raw_line[-2:]:
Expand All @@ -131,7 +131,7 @@ def read_raw(port):
raw_line += port.read(port.inWaiting())
if b'\r\n' in raw_line[-2:]: done = True
else:
time.sleep(.01)
time.sleep(.001)
if time.time() - ts > 1:
print("rx timeout")
break;
Expand Down

0 comments on commit b804747

Please sign in to comment.