ble.py - remove fancy history package again

This commit is contained in:
matt committed 2026-10-18 05:16:55 -07:00
1 parent c8590bf4a4
commit 2469338298
1 file changed
+3 -4
+3 -4
View File
@@ -292,8 +292,7 @@ def test(test_count = 0, bt_usb_id = None) -> None:
passed_list = []
# History buffer - keep the last N snapshots (N=5)
print("Creating mac_history variable")
from collections import deque
mac_history = deque(maxlen=5)
mac_history = []
print("Done")
prev_list_snapshot = None
print("Just before the loop")
@@ -307,12 +306,12 @@ def test(test_count = 0, bt_usb_id = None) -> None:
else:
# List changed - reset mac_history
print("List changed - reset mac_history")
mac_history.clear()
mac_history = []
mac_history.append(passed_list)
if len(mac_history) == 5 and all(lst == mac_history[0] for lst in mac_history):
log.warning(f"Last 5 tests have been identical, resetting adapter")
reset_adapter()
mac_history.clear()
mac_history = []
prev_list_snapshot = current_list
log.info(f" Test run: {test_count} - loop {test_loop_count} start. Initializing run...")