updated
This commit is contained in:
16
main.lua
16
main.lua
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user