change identifyMonitor and assignMonitor to local functions

This commit is contained in:
2026-06-25 14:42:06 -05:00
parent 8a9a59e97c
commit 3c43c747b0

View File

@@ -60,7 +60,7 @@ Config.Monitors = {}
Config.Monitors.InstrumentPanelMonitor = nil Config.Monitors.InstrumentPanelMonitor = nil
Config.Monitors.AutopilotControlMonitor = nil Config.Monitors.AutopilotControlMonitor = nil
function identifyMonitor(monitorType) local function identifyMonitor(monitorType)
-- Find all available monitors -- Find all available monitors
local monitors = peripheral.find("monitor") local monitors = peripheral.find("monitor")
@@ -101,7 +101,7 @@ function identifyMonitor(monitorType)
} }
end end
function assignMonitor(monitorType, monitorData) local function assignMonitor(monitorType, monitorData)
if monitorType == "instrument_panel" then if monitorType == "instrument_panel" then
Config.Monitors.InstrumentPanelMonitor = monitorData Config.Monitors.InstrumentPanelMonitor = monitorData
elseif monitorType == "autopilot_control" then elseif monitorType == "autopilot_control" then