Skip to content

Commit e7b6fb7

Browse files
committed
Merge branch 'bugfix/fix_phy_cal_data_v5.3' into 'release/v5.3'
fix(phy): add phy calibration data check when mode is not none calibration(v5.3) See merge request espressif/esp-idf!31480
2 parents d83e4bc + 872319a commit e7b6fb7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

components/esp_phy/src/phy_init.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,8 +873,7 @@ void esp_phy_load_cal_and_init(void)
873873
ESP_LOGW(TAG, "saving new calibration data because of checksum failure, mode(%d)", calibration_mode);
874874
}
875875

876-
if ((calibration_mode != PHY_RF_CAL_NONE && err != ESP_OK) ||
877-
(calibration_mode != PHY_RF_CAL_FULL && ret == ESP_CAL_DATA_CHECK_FAIL)) {
876+
if ((calibration_mode != PHY_RF_CAL_NONE) && ((err != ESP_OK) || (ret == ESP_CAL_DATA_CHECK_FAIL))) {
878877
err = esp_phy_store_cal_data_to_nvs(cal_data);
879878
} else {
880879
err = ESP_OK;

0 commit comments

Comments
 (0)