This commit is contained in:
2025-06-14 17:09:12 -04:00
parent c46bd5895f
commit 2991495592
3 changed files with 5 additions and 4 deletions

View File

@@ -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)

View File

@@ -17,8 +17,9 @@ local function watch()
end
end
local function checkCoolantLevel()
function checkCoolantLevel()
local coolantLevel = getValue()
return true
end
local function report()

View File

@@ -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