esp_phy: add menuconfig of phy calibration mode

This commit is contained in:
muhaidong
2023-03-12 18:18:06 +08:00
parent 7207194442
commit f1cec643a7
2 changed files with 25 additions and 1 deletions

View File

@@ -780,7 +780,7 @@ void esp_phy_load_cal_and_init(void)
#endif
#ifdef CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
esp_phy_calibration_mode_t calibration_mode = PHY_RF_CAL_PARTIAL;
esp_phy_calibration_mode_t calibration_mode = CONFIG_ESP_PHY_CALIBRATION_MODE;
uint8_t sta_mac[6];
if (esp_rom_get_reset_reason(0) == RESET_REASON_CORE_DEEP_SLEEP) {
calibration_mode = PHY_RF_CAL_NONE;