update
This commit is contained in:
@@ -253,7 +253,7 @@ def read_complete_response(serial_connection, timeout=2, end_of_response_timeout
|
|||||||
for target_line in wait_for_lines:
|
for target_line in wait_for_lines:
|
||||||
if target_line in decoded_response:
|
if target_line in decoded_response:
|
||||||
if debug:
|
if debug:
|
||||||
print(f"[DEBUG] 🔎 Found target line: {target_line}")
|
print(f"[DEBUG] 🔎 Found target line: {target_line} (in {elapsed_time:.2f}s)")
|
||||||
return decoded_response # Return response immediately if a target line is found
|
return decoded_response # Return response immediately if a target line is found
|
||||||
elif time.time() > end_time:
|
elif time.time() > end_time:
|
||||||
if debug:
|
if debug:
|
||||||
|
|||||||
Reference in New Issue
Block a user