From 75a9ac32da7d4a007719e96bbf6057b85e146a6d Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 23 Oct 2026 00:35:18 -0700 Subject: [PATCH] ble - fail test if over mac_count * 25 loops --- api/ble.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/ble.py b/api/ble.py index 2962fbd..1c36a55 100644 --- a/api/ble.py +++ b/api/ble.py @@ -329,8 +329,8 @@ def test_driver(test_count = 0, bt_usb_id = None): } return result # If not, then re-scan the failed sensors - elif test_loop_count > 100: - log.error(f"Test has gone on too long, failing test, rfkill bluetooth, will begin next test run.") + elif test_loop_count > len(mac_list) * 25: + log.error(f"Test has reached {len(mac_list) * 25} loops, failing test, rfkill bluetooth, will begin next test run.") rkill_bt() test_complete = True result = {