Skip to content

Commit

Permalink
Fix support for ESP-IDF v4
Browse files Browse the repository at this point in the history
  • Loading branch information
hg committed Feb 12, 2021
1 parent 7312205 commit 1356b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/main/net.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@ void initWifi() {
#pragma GCC diagnostic pop

ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA));
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wf_conf));
ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_STA, &wf_conf));
ESP_ERROR_CHECK(esp_wifi_start());
}

0 comments on commit 1356b17

Please sign in to comment.