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 = {