mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 07:00:05 +08:00
feat(esp8266): Modify old system APIs to new ones
This commit is contained in:
@ -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);
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user