This commit is contained in:
PaulVua
2025-02-19 13:29:53 +01:00
parent 8fb1882864
commit cee6c7f79b

View File

@@ -253,7 +253,7 @@ def read_complete_response(serial_connection, timeout=2, end_of_response_timeout
for target_line in wait_for_lines:
if target_line in decoded_response:
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
elif time.time() > end_time:
if debug: