refactor(light-server): rename mainOutput and secondaryOutput into bundledOutput

This commit is contained in:
Guillaume ARM 2024-05-28 01:59:27 +02:00
parent 52970328c6
commit 1d882ada6d

View File

@ -106,20 +106,20 @@ local function applySecondaryCommand(bundledOutput)
end end
local function mainLoop() local function mainLoop()
local mainOutput = rs.createBundledOutput(MAIN_OUTPUT_SIDE) local bundledOutput = rs.createBundledOutput(MAIN_OUTPUT_SIDE)
while true do while true do
os.pullEvent('light_command_main') os.pullEvent('light_command_main')
applyMainCommand(mainOutput) applyMainCommand(bundledOutput)
end end
end end
local function secondaryLoop() local function secondaryLoop()
local secondaryOutput = rs.createBundledOutput(SECONDARY_OUTPUT_SIDE) local bundledOutput = rs.createBundledOutput(SECONDARY_OUTPUT_SIDE)
while true do while true do
os.pullEvent('light_command_secondary') os.pullEvent('light_command_secondary')
applySecondaryCommand(secondaryOutput) applySecondaryCommand(bundledOutput)
end end
end end