fix(nimble): fix NVS corruption

This commit is contained in:
Astha Verma
2025-02-15 20:25:32 +05:30
committed by Rahul Tank
parent 13ff6176d4
commit 827e197573
+1 -1
View File
@@ -521,7 +521,7 @@ populate_db_from_nvs(int obj_type, void *dst, int *db_num)
(*db_num)++;
#if MYNEWT_VAL(ENC_ADV_DATA)
} if (obj_type == BLE_STORE_OBJ_TYPE_ENC_ADV_DATA) {
} else if (obj_type == BLE_STORE_OBJ_TYPE_ENC_ADV_DATA) {
ESP_LOGD(TAG, "EAD in RAM is filled up from NVS index = %d", i);
memcpy(db_item, &cur.ead, sizeof(struct ble_store_value_ead));
db_item += sizeof(struct ble_store_value_ead);