From a0955044e5ee38b2997ce33167d35432aa8047fa Mon Sep 17 00:00:00 2001 From: sri-elgora <110235170+sri-elgora@users.noreply.github.com> Date: Thu, 11 May 2023 14:11:10 +0200 Subject: [PATCH] Update RestApi.h, Bugfix JSON-Param Reset-Command Bugfix JSON-Param Reset-Command --- src/web/RestApi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/RestApi.h b/src/web/RestApi.h index fde8c7a4..812bb640 100644 --- a/src/web/RestApi.h +++ b/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(), 6)) { iv->powerLimit[0] = jsonIn["val"];