esp_wifi: Add macro control for phy log

This commit is contained in:
xiehang 2021-01-06 20:08:30 +08:00
parent c907da0656
commit 40f124b0d0
2 changed files with 4 additions and 0 deletions

View File

@ -245,11 +245,13 @@ esp_err_t esp_modem_sleep_deregister(modem_sleep_module_t module);
*/
int64_t esp_phy_rf_get_on_ts(void);
#if CONFIG_IDF_TARGET_ESP32
/**
* @brief Get PHY lib version
* @return PHY lib version.
*/
char * get_phy_version_str(void);
#endif
#ifdef __cplusplus
}

View File

@ -640,8 +640,10 @@ static void __attribute((unused)) esp_phy_reduce_tx_power(esp_phy_init_data_t* i
void esp_phy_load_cal_and_init(phy_rf_module_t module)
{
#if CONFIG_IDF_TARGET_ESP32
char * phy_version = get_phy_version_str();
ESP_LOGI(TAG, "phy_version %s", phy_version);
#endif
esp_phy_calibration_data_t* cal_data =
(esp_phy_calibration_data_t*) calloc(sizeof(esp_phy_calibration_data_t), 1);