Add reactor status check to monitor functionality
This commit is contained in:
@@ -22,6 +22,8 @@ local function startUp()
|
||||
reactor.activate()
|
||||
return
|
||||
end
|
||||
|
||||
reactorStatus = reactor.getStatus()
|
||||
end
|
||||
|
||||
local function shutdown()
|
||||
@@ -33,7 +35,7 @@ local function report()
|
||||
local value = getValue()
|
||||
local color = colors.black
|
||||
monitor.setBackgroundColor(color)
|
||||
|
||||
|
||||
setNewLine()
|
||||
monitor.write("Reactor Status: " .. tostring(value))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user