Skip to content

Commit

Permalink
Unbreak wifi.establish (#916)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperl authored Aug 2, 2022
1 parent 1cb6476 commit 9db5944
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/resources/wifi_esp32.cc
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,11 @@ PRIMITIVE(init) {
MALLOC_FAILED;
}

esp_netif_attach_wifi_station(netif);
if (ap) {
esp_netif_attach_wifi_ap(netif);
esp_wifi_set_default_wifi_ap_handlers();
} else {
esp_netif_attach_wifi_station(netif);
esp_wifi_set_default_wifi_sta_handlers();
}

Expand Down

0 comments on commit 9db5944

Please sign in to comment.