From e1c618350bb8d5e563907d2d67373fe732ce31c2 Mon Sep 17 00:00:00 2001 From: itzmarkoni Date: Sat, 14 Jun 2025 18:13:19 -0400 Subject: [PATCH] updated --- coolant_driver.lua | 7 +------ status_driver.lua | 6 +----- temperature_driver.lua | 2 +- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/coolant_driver.lua b/coolant_driver.lua index 43361f8..1fdd2e4 100644 --- a/coolant_driver.lua +++ b/coolant_driver.lua @@ -5,11 +5,6 @@ local function getValue() return (reactor.getCoolantFilledPercentage() or 0) * 100 end -local function color() - local coolantLevel = getValue() - return colors.black -end - local function checkCoolantLevel() local coolantLevel = getValue() return true @@ -28,7 +23,7 @@ end local function report() local value = getValue() - local color = color() + local color = colors.black monitor.setBackgroundColor(color) monitor.clearLine() monitor.write("Coolant: " .. value .. "%") diff --git a/status_driver.lua b/status_driver.lua index f98f904..12a523c 100644 --- a/status_driver.lua +++ b/status_driver.lua @@ -3,10 +3,6 @@ local function getValue() return reactor.getStatus() or false end -local function color() - local value = getValue() - return colors.black -end -- local function watch() -- while true do @@ -33,7 +29,7 @@ end local function report() local value = getValue() - local color = color() + local color = colors.black monitor.setBackgroundColor(color) monitor.clearLine() monitor.write("Reactor Status: " .. tostring(value)) diff --git a/temperature_driver.lua b/temperature_driver.lua index 7824bd3..9a02370 100644 --- a/temperature_driver.lua +++ b/temperature_driver.lua @@ -45,7 +45,7 @@ end local function report() local value = getValue() - local color = color() + local color = color.black monitor.setBackgroundColor(color) monitor.clearLine() monitor.write("Temperature: " .. value .. "F")