fix(nimble): Fixed incorrect handling of bonded devices

This commit is contained in:
darshan
2024-02-20 12:22:49 +05:30
committed by Abhinav Kudnar
parent d8ca951e38
commit 1ecaf3c017
+1 -1
View File
@@ -6644,7 +6644,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;
}