From 92a1c2c8d23b74387523badeaa8a922790adbda1 Mon Sep 17 00:00:00 2001 From: Ollo Date: Tue, 23 Mar 2021 21:48:57 +0100 Subject: [PATCH] Only update in main loop --- mqtt.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/mqtt.lua b/mqtt.lua index 9c1a6bf..7c9be19 100644 --- a/mqtt.lua +++ b/mqtt.lua @@ -25,9 +25,6 @@ function handleSingleCommand(client, topic, data) colorBg=string.char(green * briPer / 100, red * briPer / 100, blue * briPer / 100) print("Updated BG: " .. tostring(red) .. "," .. tostring(green) .. "," .. tostring(blue) ) m:publish(mqttPrefix .. "/background", tostring(red) .. "," .. tostring(green) .. "," .. tostring(blue), 0, 0) - if (displayTime~= nil) then - displayTime() - end else if (tonumber(data) >= 0 and tonumber(data) <= 100) then briPer=tonumber(data)