From 1d882ada6d86725353d482089714dceb76e85f1d Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Tue, 28 May 2024 01:59:27 +0200 Subject: [PATCH] refactor(light-server): rename mainOutput and secondaryOutput into bundledOutput --- light-server.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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