Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_phy_cal_data_v5.2' into 'release/v5.2'
Browse files Browse the repository at this point in the history
fix(phy): add phy calibration data check when mode is not none calibration v5.2

See merge request espressif/esp-idf!31816
  • Loading branch information
jack0c committed Jul 3, 2024
2 parents cb2a226 + ea4a2c7 commit 2acb6ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions components/esp_phy/src/phy_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,7 @@ void esp_phy_load_cal_and_init(void)
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) ||
(calibration_mode != PHY_RF_CAL_FULL && ret == ESP_CAL_DATA_CHECK_FAIL)) {
if ((calibration_mode != PHY_RF_CAL_NONE) && ((err != ESP_OK) || (ret == ESP_CAL_DATA_CHECK_FAIL))) {
err = esp_phy_store_cal_data_to_nvs(cal_data);
} else {
err = ESP_OK;
Expand Down

0 comments on commit 2acb6ac

Please sign in to comment.