fixed Wifi scan during first configuration (client connected to AP of Ahoy) #611

This commit is contained in:
lumapu 2023-01-28 23:37:40 +01:00
parent 6721c8bbc1
commit f8d4b4f5ae
3 changed files with 18 additions and 13 deletions

View file

@ -600,10 +600,8 @@ class RestApi {
}
bool setSetup(JsonObject jsonIn, JsonObject jsonOut) {
if(F("scan_wifi") == jsonIn[F("cmd")]) {
DPRINTLN(DBG_INFO, F("rqst scan"));
if(F("scan_wifi") == jsonIn[F("cmd")])
mApp->scanAvailNetworks();
}
else if(F("set_time") == jsonIn[F("cmd")])
mApp->setTimestamp(jsonIn[F("val")]);
else if(F("sync_ntp") == jsonIn[F("cmd")])