From 8789f75e2756aadad1f28231c7c71422dd46ede9 Mon Sep 17 00:00:00 2001 From: Ollo Date: Fri, 15 Jan 2021 18:10:17 +0100 Subject: [PATCH] Fixed color convertion from MQTT --- mqtt.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mqtt.lua b/mqtt.lua index 65acfa8..3d45af7 100644 --- a/mqtt.lua +++ b/mqtt.lua @@ -13,7 +13,7 @@ function handleSingleCommand(client, topic, data) red = tonumber(data:sub(2,3), 16) green = tonumber(data:sub(4,5), 16) blue = tonumber(data:sub(6,7), 16) - colorBg=string.char(red, green, blue) + colorBg=string.char(green, red, blue) print("Updated BG: " .. tostring(red) .. "," .. tostring(green) .. "," .. tostring(blue) ) if (displayTime~= nil) then displayTime()