Skip to content

Commit

Permalink
Remove no longer necessary dhcp_mode re-set.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cossid committed Nov 19, 2023
1 parent 7d41a8f commit f20c4e0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cores/beken-72xx/arduino/libraries/WiFi/WiFiSTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ WiFiClass::begin(const char *ssid, const char *passphrase, int32_t channel, cons
}
STA_ADV_CFG.ap_info.channel = channel;
STA_ADV_CFG.wifi_retry_interval = 100;

// Unsure why, but this gets unset in advanced config if set during config(), but standard config survives
STA_ADV_CFG.dhcp_mode = STA_CFG.dhcp_mode;
} else {
strcpy(STA_CFG.wifi_ssid, ssid);
memset(STA_CFG.wifi_bssid, 0x00, 6);
Expand Down

0 comments on commit f20c4e0

Please sign in to comment.