oberfritze
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
33 additions and
33 deletions
-
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; |
|
|
|
} |
|
|
|