diff --git a/api/ble.py b/api/ble.py index d7417a2..57c0390 100644 --- a/api/ble.py +++ b/api/ble.py @@ -291,22 +291,16 @@ def test(test_count = 0, bt_usb_id = None) -> None: test_list = mac_list passed_list = [] # History buffer - keep the last N snapshots (N=5) - print("Creating mac_history variable") mac_history = [] - print("Done") prev_list_snapshot = None - print("Just before the loop") while not test_result: try: # Check if the failed list has been the same for 5 loops - print("Check if the failed list has been the same for 5 loops") if prev_list_snapshot is not None and passed_list == prev_list_snapshot: # List unchanged - add to mac_history - print("List unchanged - add to mac_history") mac_history.append(passed_list) else: # List changed - reset mac_history - print("List changed - reset mac_history") mac_history = [] mac_history.append(passed_list) if len(mac_history) == 5 and all(lst == mac_history[0] for lst in mac_history):