This commit is contained in:
2025-06-15 23:12:37 -04:00
parent 41559eff5d
commit da19dc6381
2 changed files with 10 additions and 47 deletions

View File

@@ -100,6 +100,7 @@ local function runSafe()
startup();
monitor.clear();
monitor.setBackgroundColor(colors.black)
-- local names = peripheral.getNames()
-- for index, value in ipairs(names) do
-- print(index, value)
@@ -109,15 +110,15 @@ local function runSafe()
end
local function run()
runSafe()
-- local success, err = pcall(runSafe)
-- if not success then
-- monitor.setTextColor(colors.red)
-- monitor.write("Error: " .. err)
-- isErrorState = true
-- modem.open(500)
-- modem.transmit(500, 500, "Error: " .. err)
-- end
local success, err = pcall(runSafe)
if not success then
monitor.setTextColor(colors.red)
monitor.write("Error: " .. err)
isErrorState = true
modem.open(500)
modem.transmit(500, 500, "Error: " .. err)
os.reboot()
end
end