From 10104b5d0e88b0a278b6dcaf20eff7654cd346c4 Mon Sep 17 00:00:00 2001 From: Ollo Date: Tue, 8 Dec 2020 21:11:53 +0100 Subject: [PATCH] Don call display function in MQTT module --- mqtt.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/mqtt.lua b/mqtt.lua index 7fca973..2c5d832 100644 --- a/mqtt.lua +++ b/mqtt.lua @@ -9,16 +9,13 @@ function startMqtt() if (data == "ON") then briPercent=100 m:publish(mqttPrefix .. "/clock", "ON", 0, 0) - displayTime() elseif (data == "OFF") then briPercent=0 m:publish(mqttPrefix .. "/clock", "OFF", 0, 0) - displayTime() else if (tonumber(data) >= 0 and tonumber(data) <= 100) then briPercent=tonumber(data) m:publish(mqttPrefix .. "/clock", tostring(data), 0, 0) - displayTime() end end end