fix(nimble): Fixed incorrect handling of bonded devices

This commit is contained in:
darshan
2023-11-04 09:11:42 +05:30
committed by Rahul Tank
parent 8b574a7b53
commit aa7c2f1757
+1 -1
View File
@@ -6548,7 +6548,7 @@ ble_gap_unpair_oldest_peer(void)
}
rc = ble_store_util_bonded_peers(
&oldest_peer_id_addr, &num_peers, 1);
&oldest_peer_id_addr, &num_peers, MYNEWT_VAL(BLE_STORE_MAX_BONDS));
if (rc != 0) {
return rc;
}