Skip to content

Commit

Permalink
Only add startbonding when we have peer manager - because that's when…
Browse files Browse the repository at this point in the history
… we have the implementation that works
  • Loading branch information
gfwilliams committed Oct 25, 2023
1 parent d9a56c2 commit 62acf92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/bluetooth/jswrap_bluetooth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 62acf92

Please sign in to comment.