diff --git a/tools/esp8266/webApi.cpp b/tools/esp8266/webApi.cpp index 1c52e81f..31be1766 100644 --- a/tools/esp8266/webApi.cpp +++ b/tools/esp8266/webApi.cpp @@ -459,7 +459,7 @@ bool webApi::setCtrl(DynamicJsonDocument jsonIn, JsonObject jsonOut) { //----------------------------------------------------------------------------- bool webApi::setSetup(DynamicJsonDocument jsonIn, JsonObject jsonOut) { - if(F("scan_wifi")) + if(F("scan_wifi") == jsonIn[F("cmd")]) mApp->scanAvailNetworks(); else if(F("set_time") == jsonIn[F("cmd")]) mApp->setTimestamp(jsonIn[F("ts")]);