This commit is contained in:
2025-06-14 18:27:51 -04:00
parent 59e3ce396d
commit 4eb820490e

View File

@@ -11,10 +11,12 @@ burnRateDriver = kernel.addDriver("burnrate_driver")
local function runMonitors()
local status = reactor.getStatus()
if(not status) then
reactor.activate()
return
end
parallel.waitForAll(tempDriver.watch, coolantDriver.watch, statusDriver.watch, turbineDriver.watch, burnRateDriver.watch)
-- while true do
-- tempDriver.watch()
-- coolantDriver.watch()
@@ -49,9 +51,6 @@ local function runDisplay()
end
local function run()
while not reactor do
print("Waiting for reactor signal...")
sleep(1)
@@ -70,11 +69,6 @@ local function run()
print("Waiting for all drivers to be initialized...")
sleep(1)
end
local status = reactor.getStatus()
if(not status) then
reactor.activate()
return
end
parallel.waitForAll(runMonitors, runDisplay)
end