From 4956c6cfbe6fa8d7ad5b3fb45bd4f6a8a2082750 Mon Sep 17 00:00:00 2001 From: jack Date: Mon, 1 Jul 2024 15:49:57 +0800 Subject: [PATCH] fix(phy): add phy calibration data check when mode is not none calibration --- components/esp_phy/lib | 2 +- components/esp_phy/src/phy_init.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/components/esp_phy/lib b/components/esp_phy/lib index 6e6b7e10f1..a2b4b89d43 160000 --- a/components/esp_phy/lib +++ b/components/esp_phy/lib @@ -1 +1 @@ -Subproject commit 6e6b7e10f10e23bb8f9c01ddd6a5103097d8c0ae +Subproject commit a2b4b89d43f06e72ba72e14286ccf0d48c6e4bc3 diff --git a/components/esp_phy/src/phy_init.c b/components/esp_phy/src/phy_init.c index ee74faceaf..e6b4ddee49 100644 --- a/components/esp_phy/src/phy_init.c +++ b/components/esp_phy/src/phy_init.c @@ -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); } - 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;