From e487db022a9f8945450615f932348e4e96f6b78a Mon Sep 17 00:00:00 2001 From: Andrey Klimov Date: Wed, 18 Sep 2019 02:35:22 +0300 Subject: [PATCH] fix AC temp update --- lighthub/modules/out_ac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lighthub/modules/out_ac.cpp b/lighthub/modules/out_ac.cpp index 55f81fc..4f2bb8c 100644 --- a/lighthub/modules/out_ac.cpp +++ b/lighthub/modules/out_ac.cpp @@ -254,7 +254,7 @@ int out_AC::Ctrl(short cmd, short n, int * Parameters, boolean send, int suffixC if (set_tmp >= 0 && set_tmp <= 30) { data[B_SET_TMP] = set_tmp; - if (send) publishTopic(item->itemArr->name,(long)set_tmp,"/set"); + if (send) publishTopic(item->itemArr->name,(long)Parameters[0],"/set"); } break;