From 9b113099aa6da4a795e7d4da52a037c25d045625 Mon Sep 17 00:00:00 2001 From: Ollo Date: Sat, 3 Apr 2021 14:57:39 +0200 Subject: [PATCH] Fixed minute colors --- mqtt.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mqtt.lua b/mqtt.lua index 05ebee1..04b884e 100644 --- a/mqtt.lua +++ b/mqtt.lua @@ -143,13 +143,13 @@ function registerMqtt() color1 = parseBgColor(data, "color1") print("Updated color1" ) elseif (string.match(topic, "color2$")) then - color = parseBgColor(data, "color2") + color2 = parseBgColor(data, "color2") print("Updated color2" ) elseif (string.match(topic, "color3$")) then - color = parseBgColor(data, "color3") + color3 = parseBgColor(data, "color3") print("Updated color3" ) elseif (string.match(topic, "color4$")) then - color = parseBgColor(data, "color4") + color4 = parseBgColor(data, "color4") print("Updated color4" ) else for i=1,10,1 do