nvs_handle_t is undefined in IDF 3.X
This commit is contained in:
@@ -1374,7 +1374,7 @@ sensor_t * esp_camera_sensor_get()
|
|||||||
|
|
||||||
esp_err_t esp_camera_save_to_nvs(const char *key)
|
esp_err_t esp_camera_save_to_nvs(const char *key)
|
||||||
{
|
{
|
||||||
nvs_handle_t handle;
|
nvs_handle handle;
|
||||||
|
|
||||||
esp_err_t ret = nvs_open(key,NVS_READWRITE,&handle);
|
esp_err_t ret = nvs_open(key,NVS_READWRITE,&handle);
|
||||||
|
|
||||||
@@ -1399,7 +1399,7 @@ esp_err_t esp_camera_save_to_nvs(const char *key)
|
|||||||
|
|
||||||
esp_err_t esp_camera_load_from_nvs(const char *key)
|
esp_err_t esp_camera_load_from_nvs(const char *key)
|
||||||
{
|
{
|
||||||
nvs_handle_t handle;
|
nvs_handle handle;
|
||||||
uint8_t pf;
|
uint8_t pf;
|
||||||
|
|
||||||
esp_err_t ret = nvs_open(key,NVS_READWRITE,&handle);
|
esp_err_t ret = nvs_open(key,NVS_READWRITE,&handle);
|
||||||
@@ -1451,4 +1451,4 @@ esp_err_t esp_camera_load_from_nvs(const char *key)
|
|||||||
ESP_LOGW(TAG,"Error (%d) opening nvs key \"%s\"",ret,key);
|
ESP_LOGW(TAG,"Error (%d) opening nvs key \"%s\"",ret,key);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user