updated
This commit is contained in:
@@ -13,13 +13,19 @@ local function color()
|
||||
return colors.black
|
||||
end
|
||||
|
||||
-- local function watch()
|
||||
-- while true do
|
||||
-- print("Temperature: " .. getValue())
|
||||
-- checkTemperature()
|
||||
-- sleep(0.05) -- Update every tenth second
|
||||
-- end
|
||||
-- end
|
||||
|
||||
|
||||
local function watch()
|
||||
while true do
|
||||
print("Temperature: " .. getValue())
|
||||
checkTemperature()
|
||||
sleep(0.05) -- Update every tenth second
|
||||
end
|
||||
checkTemperature()
|
||||
end
|
||||
|
||||
function checkTemperature()
|
||||
local temperature = getValue()
|
||||
local upperThreshold = max - 20
|
||||
|
||||
Reference in New Issue
Block a user