feat(esp8266): Modify old system APIs to new ones

This commit is contained in:
Dong Heng
2018-06-25 16:30:38 +08:00
parent c5b9f8ed9d
commit bf0b8c8bb6
17 changed files with 40 additions and 36 deletions

View File

@ -257,7 +257,7 @@ uint32_t user_rf_cal_sector_set(void)
*******************************************************************************/
void user_init(void)
{
printf("SDK version:%s\n", system_get_sdk_version());
printf("SDK version:%s\n", esp_get_idf_version());
/* need to set opmode before you set config */
wifi_set_opmode(STATION_MODE);

View File

@ -378,7 +378,7 @@ static void on_wifi_disconnect(uint8_t reason)
*******************************************************************************/
void user_init(void)
{
printf("SDK version:%s\n", system_get_sdk_version());
printf("SDK version:%s\n", esp_get_idf_version());
set_on_station_connect(on_wifi_connect);
set_on_station_disconnect(on_wifi_disconnect);