This commit is contained in:
2025-06-14 14:06:32 -04:00
parent c88a708b38
commit 2670680813
3 changed files with 3 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ local function report(reactor, monitor)
local value = getValue(reactor) local value = getValue(reactor)
local color = color(reactor) local color = color(reactor)
monitor.setBackgroundColor(color) monitor.setBackgroundColor(color)
monitor.clearLine()
monitor.write("Coolant: " .. value .. "%") monitor.write("Coolant: " .. value .. "%")
end end

View File

@@ -24,7 +24,6 @@ local function runDisplay()
for i, item in ipairs(drivers) do for i, item in ipairs(drivers) do
monitor.setCursorPos(1, i) monitor.setCursorPos(1, i)
monitor.clearLine()
item.driver.report(reactor, monitor) item.driver.report(reactor, monitor)
monitor.setCursorPos(1, i + 1) monitor.setCursorPos(1, i + 1)
end end

View File

@@ -17,6 +17,7 @@ local function report(reactor, monitor)
local value = getValue(reactor) local value = getValue(reactor)
local color = color(reactor) local color = color(reactor)
monitor.setBackgroundColor(color) monitor.setBackgroundColor(color)
monitor.write("Coolant: " .. value .. "%") monitor.clearLine()
monitor.write("Temperature: " .. value)
end end
return { report = report, watch = watch } return { report = report, watch = watch }