updated
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
local max = 15
|
||||
local init = 3
|
||||
local rateStep = 0.10
|
||||
local rateStep = 0.01
|
||||
local min = 1
|
||||
|
||||
local function getValue()
|
||||
|
||||
@@ -10,8 +10,8 @@ end
|
||||
|
||||
local function checkTemperature()
|
||||
local temperature = getValue()
|
||||
local upperThreshold = max - 20
|
||||
local lowerThreshold = min + 20
|
||||
local upperThreshold = max - 5
|
||||
local lowerThreshold = min + 5
|
||||
|
||||
if temperature >= upperThreshold then
|
||||
print("Warning: Temperature approaching upper limit! Taking action.")
|
||||
|
||||
Reference in New Issue
Block a user