Browse Source

Bugfix for calling API setup path. Every API call started scanAvailNetworks, nothing else worked

pull/412/head
KlausMu 3 years ago
parent
commit
e346205fbd
  1. 2
      tools/esp8266/webApi.cpp

2
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")]);

Loading…
Cancel
Save