Skip to content

Commit

Permalink
Revert "WiFiSTA - allow using DHCP again after disconnecting static IP (
Browse files Browse the repository at this point in the history
espressif#8848)"

This reverts commit a9a72d1.
  • Loading branch information
JAndrassy committed Nov 12, 2023
1 parent fbfcb80 commit 5361d58
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion libraries/WiFi/src/WiFiSTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,6 @@ bool WiFiSTAClass::disconnect(bool wifioff, bool eraseap)
wifi_sta_config(&conf);

if(WiFi.getMode() & WIFI_MODE_STA){
_useStaticIp = false;
if(eraseap){
if(esp_wifi_set_config((wifi_interface_t)ESP_IF_WIFI_STA, &conf)){
log_e("clear config failed!");
Expand Down

0 comments on commit 5361d58

Please sign in to comment.