Skip to content

Commit 872319a

Browse files
committed
fix(phy): add phy calibration data check when mode is not none calibration
1 parent 34e5669 commit 872319a

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)