diff --git a/lib/libesp32_div/NimBLE-Arduino/src/nimble/esp_port/port/include/esp_nimble_cfg.h b/lib/libesp32_div/NimBLE-Arduino/src/nimble/esp_port/port/include/esp_nimble_cfg.h index fb00ae115e10..3b1e4e3aeee5 100644 --- a/lib/libesp32_div/NimBLE-Arduino/src/nimble/esp_port/port/include/esp_nimble_cfg.h +++ b/lib/libesp32_div/NimBLE-Arduino/src/nimble/esp_port/port/include/esp_nimble_cfg.h @@ -686,7 +686,7 @@ #ifndef MYNEWT_VAL_BLE_STORE_CONFIG_PERSIST #ifdef CONFIG_BT_NIMBLE_NVS_PERSIST -#define MYNEWT_VAL_BLE_STORE_CONFIG_PERSIST (1) +#define MYNEWT_VAL_BLE_STORE_CONFIG_PERSIST (CONFIG_BT_NIMBLE_NVS_PERSIST) #else #define MYNEWT_VAL_BLE_STORE_CONFIG_PERSIST (0) #endif