From e346205fbd16eab97d230cd8e28e51dabc9e0c79 Mon Sep 17 00:00:00 2001 From: KlausMu Date: Sat, 12 Nov 2022 17:31:07 +0100 Subject: [PATCH] Bugfix for calling API setup path. Every API call started scanAvailNetworks, nothing else worked --- tools/esp8266/webApi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")]);