From 07efffc41710bb9f7d2c377b1a50cfa16a1704b8 Mon Sep 17 00:00:00 2001 From: liquidraver <504870+liquidraver@users.noreply.github.com> Date: Thu, 21 May 2026 21:46:49 +0200 Subject: [PATCH] =?UTF-8?q?zephcore=5Fble=5Fis=5Fenabled=20=E2=86=92=20zep?= =?UTF-8?q?hcore=5Fble=5Fis=5Fenabled().=20The=20watchdog=20now=20actually?= =?UTF-8?q?=20honors=20the=20disabled=20state=20instead=20of=20re-enabling?= =?UTF-8?q?=20BLE=20on=20every=20housekeeping=20tick.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zephcore/src/main_companion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephcore/src/main_companion.cpp b/zephcore/src/main_companion.cpp index 771e7df..d056a6e 100644 --- a/zephcore/src/main_companion.cpp +++ b/zephcore/src/main_companion.cpp @@ -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); }