mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(phy): add phy calibration data check when mode is not none calibration
This commit is contained in:
parent
a6e89b466f
commit
4956c6cfbe
@ -1 +1 @@
|
|||||||
Subproject commit 6e6b7e10f10e23bb8f9c01ddd6a5103097d8c0ae
|
Subproject commit a2b4b89d43f06e72ba72e14286ccf0d48c6e4bc3
|
@ -757,8 +757,7 @@ void esp_phy_load_cal_and_init(void)
|
|||||||
ESP_LOGW(TAG, "saving new calibration data because of checksum failure, mode(%d)", calibration_mode);
|
ESP_LOGW(TAG, "saving new calibration data because of checksum failure, mode(%d)", calibration_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((calibration_mode != PHY_RF_CAL_NONE && err != ESP_OK) ||
|
if ((calibration_mode != PHY_RF_CAL_NONE) && ((err != ESP_OK) || (ret == ESP_CAL_DATA_CHECK_FAIL))) {
|
||||||
(calibration_mode != PHY_RF_CAL_FULL && ret == ESP_CAL_DATA_CHECK_FAIL)) {
|
|
||||||
err = esp_phy_store_cal_data_to_nvs(cal_data);
|
err = esp_phy_store_cal_data_to_nvs(cal_data);
|
||||||
} else {
|
} else {
|
||||||
err = ESP_OK;
|
err = ESP_OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user