refactor(light-server): rename mainOutput and secondaryOutput into bundledOutput
This commit is contained in:
parent
52970328c6
commit
1d882ada6d
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user