From b95f59ee7f08996575966afdd41f9e5345dbeb02 Mon Sep 17 00:00:00 2001 From: Ollo Date: Tue, 8 Dec 2020 20:45:18 +0100 Subject: [PATCH] Fix LUA syntax --- mqtt.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mqtt.lua b/mqtt.lua index 8f51f35..7fca973 100644 --- a/mqtt.lua +++ b/mqtt.lua @@ -42,7 +42,7 @@ if (mqttServer ~= nil and mqttPrefix ~= nil) then print "Started MQTT client" oldBrightness=0 tmr.alarm(5, 10000, 1 ,function() - if (oldBrightness <> briPercent) then + if (oldBrightness ~= briPercent) then m:publish(mqttPrefix .. "/brightness", tostring(briPercent), 0, 0) end oldBrightness = briPercent