mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-18 16:20:41 +01:00
Set dnsServerStatus first to prevent running
This commit is contained in:
@@ -121,8 +121,8 @@ void NetworkSettingsClass::setupMode()
|
||||
dnsServer->start(DNS_PORT, "*", WiFi.softAPIP());
|
||||
dnsServerStatus = true;
|
||||
} else {
|
||||
dnsServer->stop();
|
||||
dnsServerStatus = false;
|
||||
dnsServer->stop();
|
||||
if (_networkMode == network_mode::WiFi) {
|
||||
WiFi.mode(WIFI_STA);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user