updated
This commit is contained in:
24
main.lua
24
main.lua
@@ -13,13 +13,14 @@ burnRateDriver = kernel.addDriver("burnrate_driver")
|
||||
|
||||
|
||||
local function runMonitors()
|
||||
parallel.waitForAll(
|
||||
tempDriver.watch,
|
||||
coolantDriver.watch,
|
||||
statusDriver.watch,
|
||||
turbineDriver.watch,
|
||||
burnRateDriver.watch
|
||||
)
|
||||
while true do
|
||||
tempDriver.watch()
|
||||
coolantDriver.watch()
|
||||
statusDriver.watch()
|
||||
turbineDriver.watch()
|
||||
burnRateDriver.watch()
|
||||
sleep(0.05)
|
||||
end
|
||||
end
|
||||
|
||||
local function runDisplay()
|
||||
@@ -68,14 +69,7 @@ local function run()
|
||||
sleep(1)
|
||||
end
|
||||
|
||||
parallel.waitForAll(runMonitors,
|
||||
runDisplay,
|
||||
tempDriver.watch,
|
||||
coolantDriver.watch,
|
||||
statusDriver.watch,
|
||||
turbineDriver.watch,
|
||||
burnRateDriver.watch
|
||||
)
|
||||
parallel.waitForAll(runMonitors, runDisplay)
|
||||
end
|
||||
|
||||
return { run = run}
|
||||
|
||||
Reference in New Issue
Block a user