Fixed color convertion from MQTT
This commit is contained in:
parent
9534368b01
commit
8789f75e27
2
mqtt.lua
2
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()
|
||||
|
Loading…
Reference in New Issue
Block a user