Skip to content

Commit

Permalink
WIFI_INIT_CONFIG_DEFAULT() takes no arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
projectgus committed Sep 27, 2016
1 parent 1305a6f commit bbf4cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ int app_main(void)
system_init();
tcpip_adapter_init();
ESP_ERROR_CHECK( esp_event_loop_init(event_handler, NULL) );
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT(esp_event_loop_get_queue() );
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
ESP_ERROR_CHECK( esp_wifi_init(&cfg) );
ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );
ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) );
Expand Down

0 comments on commit bbf4cd7

Please sign in to comment.