Merge branch 'bugfix/wifi_do_not_load_phy_data_if_fail_to_open_nvs' into 'master'
esp32: do not try to load PHY data if fail to open NVS See merge request idf/esp-idf!3538
This commit is contained in:
commit
17c70a4a32
1 changed files with 1 additions and 0 deletions
|
@ -446,6 +446,7 @@ esp_err_t esp_phy_load_cal_data_from_nvs(esp_phy_calibration_data_t* out_cal_dat
|
||||||
if (err == ESP_ERR_NVS_NOT_INITIALIZED) {
|
if (err == ESP_ERR_NVS_NOT_INITIALIZED) {
|
||||||
ESP_LOGE(TAG, "%s: NVS has not been initialized. "
|
ESP_LOGE(TAG, "%s: NVS has not been initialized. "
|
||||||
"Call nvs_flash_init before starting WiFi/BT.", __func__);
|
"Call nvs_flash_init before starting WiFi/BT.", __func__);
|
||||||
|
return err;
|
||||||
} else if (err != ESP_OK) {
|
} else if (err != ESP_OK) {
|
||||||
ESP_LOGD(TAG, "%s: failed to open NVS namespace (0x%x)", __func__, err);
|
ESP_LOGD(TAG, "%s: failed to open NVS namespace (0x%x)", __func__, err);
|
||||||
return err;
|
return err;
|
||||||
|
|
Loading…
Reference in a new issue