diff --git a/api/ble.py b/api/ble.py index c4461ee..1cdfb5d 100644 --- a/api/ble.py +++ b/api/ble.py @@ -303,11 +303,11 @@ def test(test_count = 0, bt_usb_id = None) -> None: # List unchanged - add to history print("List unchanged - add to history") history.append(passed_list) - # else: - # # List changed - reset history - # print("List changed - reset history") - # history = [] - # history.append(current_list) + else: + # List changed - reset history + print("List changed - reset history") + history = [] + history.append(current_list) # if len(history) == 5 and all(lst == history[0] for lst in history): # log.warning(f"Last 5 tests have been identical, resetting adapter") # reset_adapter()