Browse Source
Update RestApi.h, Bugfix JSON-Param Reset-Command
Bugfix JSON-Param Reset-Command
pull/934/head
sri-elgora
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/web/RestApi.h
|
|
@ -553,7 +553,7 @@ class RestApi { |
|
|
|
|
|
|
|
if(F("power") == jsonIn[F("cmd")]) |
|
|
|
accepted = iv->setDevControlRequest((jsonIn[F("val")] == 1) ? TurnOn : TurnOff); |
|
|
|
else if(F("restart") == jsonIn[F("restart")]) |
|
|
|
else if(F("restart") == jsonIn[F("cmd")]) |
|
|
|
accepted = iv->setDevControlRequest(Restart); |
|
|
|
else if(0 == strncmp("limit_", jsonIn[F("cmd")].as<const char*>(), 6)) { |
|
|
|
iv->powerLimit[0] = jsonIn["val"]; |
|
|
|