updated
This commit is contained in:
@@ -27,6 +27,7 @@ local function report(reactor, monitor)
|
||||
local value = getValue(reactor)
|
||||
local color = color(reactor)
|
||||
monitor.setBackgroundColor(color)
|
||||
monitor.clearLine()
|
||||
monitor.write("Coolant: " .. value .. "%")
|
||||
end
|
||||
|
||||
|
||||
1
main.lua
1
main.lua
@@ -24,7 +24,6 @@ local function runDisplay()
|
||||
|
||||
for i, item in ipairs(drivers) do
|
||||
monitor.setCursorPos(1, i)
|
||||
monitor.clearLine()
|
||||
item.driver.report(reactor, monitor)
|
||||
monitor.setCursorPos(1, i + 1)
|
||||
end
|
||||
|
||||
@@ -17,6 +17,7 @@ local function report(reactor, monitor)
|
||||
local value = getValue(reactor)
|
||||
local color = color(reactor)
|
||||
monitor.setBackgroundColor(color)
|
||||
monitor.write("Coolant: " .. value .. "%")
|
||||
monitor.clearLine()
|
||||
monitor.write("Temperature: " .. value)
|
||||
end
|
||||
return { report = report, watch = watch }
|
||||
Reference in New Issue
Block a user