From b80474779177dba46ef414f6a0aaca9e92758601 Mon Sep 17 00:00:00 2001 From: Andy Paul Date: Sun, 16 Jul 2023 10:47:37 +0200 Subject: [PATCH] improve rx speed --- tools/tino2cal_v01.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tino2cal_v01.py b/tools/tino2cal_v01.py index d0512e9..2f50cc9 100644 --- a/tools/tino2cal_v01.py +++ b/tools/tino2cal_v01.py @@ -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:]: @@ -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;