zephcore_ble_is_enabled → zephcore_ble_is_enabled().

The watchdog now actually honors the disabled state instead of re-enabling BLE on every housekeeping tick.
This commit is contained in:
liquidraver
2026-05-21 21:46:49 +02:00
parent 7796c1e203
commit 07efffc417
+1 -1
View File
@@ -334,7 +334,7 @@ static void mesh_event_loop(void)
* transiently (HCI timeout, controller pacing) the device
* would silently stop advertising and be undiscoverable
* until next reboot. Cheap to nudge it back here. */
if (zephcore_ble_is_enabled && !zephcore_ble_is_connected() && !zephcore_ble_is_advertising()) {
if (zephcore_ble_is_enabled() && !zephcore_ble_is_connected() && !zephcore_ble_is_advertising()) {
LOG_WRN("BLE adv watchdog: not advertising, re-enabling");
zephcore_ble_set_enabled(true);
}