Browse Source

Add files via upload

pull/1080/head
oberfritze 2 years ago
committed by GitHub
parent
commit
0c1ddd8c7a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/web/RestApi.h

6
src/web/RestApi.h

@ -748,13 +748,13 @@ class RestApi {
mApp->setTimestamp(jsonIn[F("val")]);
else if(F("sync_ntp") == jsonIn[F("cmd")])
mApp->setTimestamp(0); // 0: update ntp flag
else if(F("serial_utc_offset") == jsonIn[F("cmd")]) {
else if(F("serial_utc_offset") == jsonIn[F("cmd")])
mTimezoneOffset = jsonIn[F("val")];
#ifdef AHOY_MQTT_SUPPORT
else if(F("discovery_cfg") == jsonIn[F("cmd")]) {
else if(F("discovery_cfg") == jsonIn[F("cmd")])
mApp->setMqttDiscoveryFlag(); // for homeassistant
#endif
} else {
else {
jsonOut[F("error")] = F("unknown cmd");
return false;
}

Loading…
Cancel
Save