From 62acf92dd9cd718bfb4c1c013f67b0c80fc1a489 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Wed, 25 Oct 2023 16:32:50 +0100 Subject: [PATCH] Only add startbonding when we have peer manager - because that's when we have the implementation that works --- libs/bluetooth/jswrap_bluetooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/bluetooth/jswrap_bluetooth.c b/libs/bluetooth/jswrap_bluetooth.c index 2ed672d66f..2da8a7edc3 100644 --- a/libs/bluetooth/jswrap_bluetooth.c +++ b/libs/bluetooth/jswrap_bluetooth.c @@ -3740,7 +3740,7 @@ JsVar *jswrap_ble_getSecurityStatus(JsVar *parent) { } */ JsVar *jswrap_ble_startBonding(bool forceRePair) { -#if CENTRAL_LINK_COUNT>0 +#if PEER_MANAGER_ENABLED if (bleNewTask(BLETASK_BONDING, NULL)) { JsVar *promise = jsvLockAgainSafe(blePromise); jsble_startBonding(forceRePair);