updated
This commit is contained in:
@@ -16,6 +16,7 @@ end
|
|||||||
|
|
||||||
local function watch()
|
local function watch()
|
||||||
while true do
|
while true do
|
||||||
|
sleep(0.05) -- Update every tenth second
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ end
|
|||||||
local function watch()
|
local function watch()
|
||||||
while true do
|
while true do
|
||||||
checkCoolantLevel()
|
checkCoolantLevel()
|
||||||
|
sleep(0.05)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
2
main.lua
2
main.lua
@@ -42,7 +42,7 @@ local function runDisplay()
|
|||||||
monitor.setCursorPos(1, i + 1)
|
monitor.setCursorPos(1, i + 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
sleep(0.10) -- Update every tenth second
|
sleep(0.05) -- Update every tenth second
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ end
|
|||||||
local function watch()
|
local function watch()
|
||||||
while true do
|
while true do
|
||||||
checkStatus()
|
checkStatus()
|
||||||
|
sleep(0.05) -- Update every tenth second
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ local function watch()
|
|||||||
while true do
|
while true do
|
||||||
print("Temperature: " .. getValue())
|
print("Temperature: " .. getValue())
|
||||||
checkTemperature()
|
checkTemperature()
|
||||||
|
sleep(0.05) -- Update every tenth second
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function checkTemperature()
|
function checkTemperature()
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ end
|
|||||||
local function watch()
|
local function watch()
|
||||||
while true do
|
while true do
|
||||||
checkSteamLevel()
|
checkSteamLevel()
|
||||||
|
sleep(0.05) -- Update every tenth second
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user