fix(phy): add phy calibration data check when mode is not none calibration

This commit is contained in:
chenjianxing 2024-06-05 15:56:57 +08:00
parent 6e59ca58e6
commit 4dfeb9c26c
2 changed files with 2 additions and 3 deletions

@ -1 +1 @@
Subproject commit c5d2548ae63b895c5f7c8727f25c3e129c59d71d
Subproject commit 06e7625de197bc12797dd701d6762229bca01826

View File

@ -873,8 +873,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;