updated
This commit is contained in:
@@ -8,19 +8,6 @@ local function getValue()
|
||||
return reactor.getBurnRate() or init
|
||||
end
|
||||
|
||||
local function color()
|
||||
local value = getValue()
|
||||
return colors.black
|
||||
end
|
||||
|
||||
|
||||
|
||||
local function watch()
|
||||
while true do
|
||||
sleep(0.05) -- Update every tenth second
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
local function stepUp()
|
||||
local value = getValue()
|
||||
@@ -49,17 +36,22 @@ local function stepDown()
|
||||
reactor.setBurnRate(value - rateStep)
|
||||
end
|
||||
end
|
||||
local function startUp()
|
||||
end
|
||||
|
||||
local function shutdown()
|
||||
end
|
||||
local function watch()
|
||||
print("Setting Default Burn Rate to: " .. init)
|
||||
reactor.setBurnRate(init)
|
||||
end
|
||||
|
||||
local function report()
|
||||
local color = color()
|
||||
local color = colors.black
|
||||
monitor.setBackgroundColor(color)
|
||||
value = getValue()
|
||||
monitor.clearLine()
|
||||
|
||||
setNewLine()
|
||||
monitor.write("Burn Rate: " .. value)
|
||||
end
|
||||
return { report = report, watch = watch, stepUp = stepUp, stepDown = stepDown, slowStepDown = slowStepDown, slowStepUp = slowStepUp }
|
||||
return { report = report, watch = watch, stepUp = stepUp, stepDown = stepDown, slowStepDown = slowStepDown, slowStepUp = slowStepUp, startUp = startUp, shutdown = shutdown }
|
||||
Reference in New Issue
Block a user