mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-20 08:50:02 +00:00
Save the correct key on peer_secs
This fixes a bond issue
This commit is contained in:
committed by
Abhinav Kudnar
parent
fd31133ae0
commit
e769fccd57
@@ -398,7 +398,7 @@ int ble_store_config_persist_peer_secs(void)
|
||||
|
||||
/* NVS db count less than RAM count, write operation */
|
||||
ESP_LOGD(TAG, "Persisting peer sec value in NVS...");
|
||||
val.sec = ble_store_config_our_secs[ble_store_config_num_peer_secs - 1];
|
||||
val.sec = ble_store_config_peer_secs[ble_store_config_num_peer_secs - 1];
|
||||
return ble_store_nvs_write(BLE_STORE_OBJ_TYPE_PEER_SEC, &val);
|
||||
} else if (nvs_count > ble_store_config_num_peer_secs) {
|
||||
/* NVS db count more than RAM count, delete operation */
|
||||
|
||||
Reference in New Issue
Block a user