mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
esp_wifi: optimize phy version log
This commit is contained in:
@@ -283,6 +283,12 @@ esp_err_t esp_phy_update_country_info(const char *country);
|
|||||||
esp_err_t esp_phy_apply_phy_init_data(uint8_t *init_data);
|
esp_err_t esp_phy_apply_phy_init_data(uint8_t *init_data);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @brief Get PHY lib version
|
||||||
|
* @return PHY lib version.
|
||||||
|
*/
|
||||||
|
char * get_phy_version_str(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -714,6 +714,9 @@ 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)
|
void esp_phy_load_cal_and_init(phy_rf_module_t module)
|
||||||
{
|
{
|
||||||
|
char * phy_version = get_phy_version_str();
|
||||||
|
ESP_LOGI(TAG, "phy_version %s", phy_version);
|
||||||
|
|
||||||
esp_phy_calibration_data_t* cal_data =
|
esp_phy_calibration_data_t* cal_data =
|
||||||
(esp_phy_calibration_data_t*) calloc(sizeof(esp_phy_calibration_data_t), 1);
|
(esp_phy_calibration_data_t*) calloc(sizeof(esp_phy_calibration_data_t), 1);
|
||||||
if (cal_data == NULL) {
|
if (cal_data == NULL) {
|
||||||
|
Reference in New Issue
Block a user