From 9950ff6883c42e9c0cbb83e924c2c1f8f281b02e Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Tue, 28 May 2024 01:27:25 +0200 Subject: [PATCH] fix: bad secondary output for light-server --- light-server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/light-server.lua b/light-server.lua index fea3067..2c8e83e 100644 --- a/light-server.lua +++ b/light-server.lua @@ -99,7 +99,7 @@ local function mainLoop() if typeOfRoom == 'main' then applyMainCommand(mainOutput, lightIsOn) elseif typeOfRoom == 'secondary' then - applySecondaryCommand(mainOutput, lightIsOn) + applySecondaryCommand(secondaryOutput, lightIsOn) else error('unknown type of room "' .. tostring(typeOfRoom) .. '"', 0) end