fix: bad secondary output for light-server

This commit is contained in:
Guillaume ARM 2024-05-28 01:27:25 +02:00
parent b4a3abb210
commit 9950ff6883

View File

@ -99,7 +99,7 @@ local function mainLoop()
if typeOfRoom == 'main' then if typeOfRoom == 'main' then
applyMainCommand(mainOutput, lightIsOn) applyMainCommand(mainOutput, lightIsOn)
elseif typeOfRoom == 'secondary' then elseif typeOfRoom == 'secondary' then
applySecondaryCommand(mainOutput, lightIsOn) applySecondaryCommand(secondaryOutput, lightIsOn)
else else
error('unknown type of room "' .. tostring(typeOfRoom) .. '"', 0) error('unknown type of room "' .. tostring(typeOfRoom) .. '"', 0)
end end