mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
fix(phy): fixed calibration warning infomation inaccurate issue
Closes https://github.com/espressif/esp-idf/issues/14963
This commit is contained in:
parent
b3a3053c1a
commit
bf58767f95
@ -28,7 +28,7 @@ void phy_get_romfunc_addr(void);
|
||||
* @param[in] init_data Initialization parameters to be used by the PHY
|
||||
* @param[inout] cal_data As input, calibration data previously obtained. As output, will contain new calibration data.
|
||||
* @param[in] cal_mode RF calibration mode
|
||||
* @return ESP_CAL_DATA_CHECK_FAIL if calibration data checksum fails, other values are reserved for future use
|
||||
* @return ESP_CAL_DATA_CHECK_FAIL if the calibration data checksum fails or if the calibration data is outdated, other values are reserved for future use
|
||||
*/
|
||||
int register_chipv7_phy(const esp_phy_init_data_t* init_data, esp_phy_calibration_data_t *cal_data, esp_phy_calibration_mode_t cal_mode);
|
||||
|
||||
|
@ -754,7 +754,7 @@ void esp_phy_load_cal_and_init(void)
|
||||
memcpy(cal_data->mac, sta_mac, 6);
|
||||
esp_err_t ret = register_chipv7_phy(init_data, cal_data, calibration_mode);
|
||||
if (ret == ESP_CAL_DATA_CHECK_FAIL) {
|
||||
ESP_LOGW(TAG, "saving new calibration data because of checksum failure, mode(%d)", calibration_mode);
|
||||
ESP_LOGI(TAG, "Saving new calibration data due to checksum failure or outdated calibration data, mode(%d)", calibration_mode);
|
||||
}
|
||||
|
||||
if ((calibration_mode != PHY_RF_CAL_NONE) && ((err != ESP_OK) || (ret == ESP_CAL_DATA_CHECK_FAIL))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user