mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ble:config.c remove the error code when there is no file in the nvs because it is not an error.
This commit is contained in:
parent
a05c00c2b3
commit
8e1a28940c
@ -545,6 +545,9 @@ static void config_parse(nvs_handle_t fp, config_t *config)
|
||||
char *keyname = osi_calloc(keyname_bufsz);
|
||||
int buf_size = get_config_size_from_flash(fp);
|
||||
char *buf = osi_calloc(buf_size);
|
||||
if(buf_size == 0) { //First use nvs
|
||||
goto error;
|
||||
}
|
||||
if (!line || !section || !buf || !keyname) {
|
||||
err_code |= 0x01;
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user