This commit is contained in:
2025-06-14 17:36:55 -04:00
parent 78f224581f
commit 48c52e76cf
6 changed files with 51 additions and 35 deletions

View File

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