mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
component/bt: fix enable gattc nvs cache lead to crash
This commit is contained in:
@ -394,6 +394,8 @@ void bta_gattc_co_cache_addr_init(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memset(cache_env, 0x0, sizeof(cache_env_t));
|
||||||
|
|
||||||
if ((err_code = nvs_open(cache_addr, NVS_READWRITE, &fp)) == ESP_OK) {
|
if ((err_code = nvs_open(cache_addr, NVS_READWRITE, &fp)) == ESP_OK) {
|
||||||
cache_env->addr_fp = fp;
|
cache_env->addr_fp = fp;
|
||||||
cache_env->is_open = TRUE;
|
cache_env->is_open = TRUE;
|
||||||
|
Reference in New Issue
Block a user