diff --git a/light-server.lua b/light-server.lua index bf01a9d..0dd5528 100644 --- a/light-server.lua +++ b/light-server.lua @@ -106,20 +106,20 @@ local function applySecondaryCommand(bundledOutput) end local function mainLoop() - local mainOutput = rs.createBundledOutput(MAIN_OUTPUT_SIDE) + local bundledOutput = rs.createBundledOutput(MAIN_OUTPUT_SIDE) while true do os.pullEvent('light_command_main') - applyMainCommand(mainOutput) + applyMainCommand(bundledOutput) end end local function secondaryLoop() - local secondaryOutput = rs.createBundledOutput(SECONDARY_OUTPUT_SIDE) + local bundledOutput = rs.createBundledOutput(SECONDARY_OUTPUT_SIDE) while true do os.pullEvent('light_command_secondary') - applySecondaryCommand(secondaryOutput) + applySecondaryCommand(bundledOutput) end end