diff --git a/api/ble.py b/api/ble.py index 0e72b2c..a35d8d2 100644 --- a/api/ble.py +++ b/api/ble.py @@ -290,7 +290,8 @@ def test(test_count = 0, bt_usb_id = None) -> None: log.info(f" Scanning MACs: {mac_list}") test_list = mac_list # History buffer - keep the last N snapshots (N=5) - print("Creating histor variable") + print("Creating history variable") + from collections import deque history = deque(maxlen=5) print("Done") prev_list_snapshot = None