fix monitor peripheral values being a string

This commit is contained in:
2026-06-25 16:17:07 -05:00
parent 9c137b3d20
commit ba5d21a723

View File

@@ -620,11 +620,15 @@ function Init()
if Config.Monitors.InstrumentPanelMonitor == nil then
print("Identifying instrument panel monitor...")
Config.Monitors.InstrumentPanelMonitor = identifyMonitor("instrument panel")
else
Config.Monitors.InstrumentPanelMonitor.peripheral = peripheral.wrap(Config.Monitors.InstrumentPanelMonitor.name)
end
if Config.Monitors.AutopilotControlMonitor == nil then
print("Identifying autopilot control monitor...")
Config.Monitors.AutopilotControlMonitor = identifyMonitor("autopilot control")
else
Config.Monitors.AutopilotControlMonitor.peripheral = peripheral.wrap(Config.Monitors.AutopilotControlMonitor.name)
end