From 2670680813fefec037e2dda9b1bdd31deed8c914 Mon Sep 17 00:00:00 2001 From: itzmarkoni Date: Sat, 14 Jun 2025 14:06:32 -0400 Subject: [PATCH] updated --- coolant_driver.lua | 1 + main.lua | 1 - temperature_driver.lua | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/coolant_driver.lua b/coolant_driver.lua index f1ebd3f..c1fd58e 100644 --- a/coolant_driver.lua +++ b/coolant_driver.lua @@ -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 diff --git a/main.lua b/main.lua index a3a3209..eb89022 100644 --- a/main.lua +++ b/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 diff --git a/temperature_driver.lua b/temperature_driver.lua index fa74673..25e5496 100644 --- a/temperature_driver.lua +++ b/temperature_driver.lua @@ -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 } \ No newline at end of file