From 2991495592835e52d21ab7a5dd0a152472a3849a Mon Sep 17 00:00:00 2001 From: itzmarkoni Date: Sat, 14 Jun 2025 17:09:12 -0400 Subject: [PATCH] updated --- burnrate_driver.lua | 4 ++-- coolant_driver.lua | 3 ++- temperature_driver.lua | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/burnrate_driver.lua b/burnrate_driver.lua index d80a0c3..93d5877 100644 --- a/burnrate_driver.lua +++ b/burnrate_driver.lua @@ -19,14 +19,14 @@ local function watch() end end -local function stepUp() +function stepUp() local value = getValue() if value < max then reactor.setBurnRate(value + rateStep) end end -local function stepDown() +function stepDown() local value = getValue() if value > min then reactor.setBurnRate(value - rateStep) diff --git a/coolant_driver.lua b/coolant_driver.lua index db42ac3..09e226c 100644 --- a/coolant_driver.lua +++ b/coolant_driver.lua @@ -17,8 +17,9 @@ local function watch() end end -local function checkCoolantLevel() +function checkCoolantLevel() local coolantLevel = getValue() + return true end local function report() diff --git a/temperature_driver.lua b/temperature_driver.lua index 43f11f5..c147124 100644 --- a/temperature_driver.lua +++ b/temperature_driver.lua @@ -19,7 +19,7 @@ local function watch() checkTemperature() end end -local function checkTemperature() +function checkTemperature() local temperature = getValue() local upperThreshold = max - 20 local lowerThreshold = min + 20