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
#8848)" (#8873)

This reverts commit a9a72d1.

Co-authored-by: Rodrigo Garcia <[email protected]>
  • Loading branch information
JAndrassy and SuGlider authored Dec 20, 2023
1 parent e9ee9c1 commit ad4f0ac
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 ad4f0ac

Please sign in to comment.