When initializing wifi, use actual channel from settings instead of always using channel 1

This commit is contained in:
Metamogul 2021-01-24 23:17:06 +01:00
parent 6c6727eff8
commit 33c97bab99
1 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ namespace wifi {
setPath("/web");
setSSID(settings::getAccessPointSettings().ssid);
setPassword(settings::getAccessPointSettings().password);
setChannel(1);
setChannel(settings::getWifiSettings().channel);
setHidden(settings::getAccessPointSettings().hidden);
setCaptivePortal(settings::getWebSettings().captive_portal);
@ -462,4 +462,4 @@ namespace wifi {
dns.processNextRequest();
}
}
}
}