mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_wifi: Add macro control for phy log
This commit is contained in:
parent
c907da0656
commit
40f124b0d0
@ -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
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user