feat(esp8266): format phy_init.c

This commit is contained in:
Zhang Jun Hao
2019-06-06 14:52:26 +08:00
parent d04ce110f9
commit 2084e8ed19

View File

@ -101,9 +101,11 @@ esp_err_t esp_phy_rf_init(const esp_phy_init_data_t *init_data, esp_phy_calibrat
if (cal_data_check == ESP_CAL_DATA_CHECK_FAIL) {
#ifdef CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
ESP_LOGW(TAG, "saving new calibration data because of checksum failure, mode(%d)", mode);
if (mode != PHY_RF_CAL_FULL) {
esp_phy_store_cal_data_to_nvs(calibration_data);
}
#endif
}
@ -342,11 +344,14 @@ uint16_t esp_wifi_get_vdd33(void)
ESP_LOGE(TAG, "Please set VDD33 const to 0xff");
return 0xFFFF;
}
extern uint16_t phy_get_vdd33();
uint16_t ret = phy_get_vdd33();
if (ret != 0xFFFF) {
ret = ret * 12 / 11;
}
return ret;
}