fix monitor peripheral values being a string
This commit is contained in:
4
main.lua
4
main.lua
@@ -620,11 +620,15 @@ function Init()
|
|||||||
if Config.Monitors.InstrumentPanelMonitor == nil then
|
if Config.Monitors.InstrumentPanelMonitor == nil then
|
||||||
print("Identifying instrument panel monitor...")
|
print("Identifying instrument panel monitor...")
|
||||||
Config.Monitors.InstrumentPanelMonitor = identifyMonitor("instrument panel")
|
Config.Monitors.InstrumentPanelMonitor = identifyMonitor("instrument panel")
|
||||||
|
else
|
||||||
|
Config.Monitors.InstrumentPanelMonitor.peripheral = peripheral.wrap(Config.Monitors.InstrumentPanelMonitor.name)
|
||||||
end
|
end
|
||||||
|
|
||||||
if Config.Monitors.AutopilotControlMonitor == nil then
|
if Config.Monitors.AutopilotControlMonitor == nil then
|
||||||
print("Identifying autopilot control monitor...")
|
print("Identifying autopilot control monitor...")
|
||||||
Config.Monitors.AutopilotControlMonitor = identifyMonitor("autopilot control")
|
Config.Monitors.AutopilotControlMonitor = identifyMonitor("autopilot control")
|
||||||
|
else
|
||||||
|
Config.Monitors.AutopilotControlMonitor.peripheral = peripheral.wrap(Config.Monitors.AutopilotControlMonitor.name)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user