updated
This commit is contained in:
12
main.lua
12
main.lua
@@ -48,11 +48,7 @@ end
|
|||||||
|
|
||||||
local function run()
|
local function run()
|
||||||
|
|
||||||
-- Wait for all driver objects to be available
|
|
||||||
while not (tempDriver and coolantDriver and statusDriver and turbineDriver and burnRateDriver) do
|
|
||||||
print("Waiting for all drivers to be initialized...")
|
|
||||||
sleep(1)
|
|
||||||
end
|
|
||||||
|
|
||||||
while not reactor do
|
while not reactor do
|
||||||
print("Waiting for reactor signal...")
|
print("Waiting for reactor signal...")
|
||||||
@@ -67,6 +63,12 @@ local function run()
|
|||||||
sleep(1)
|
sleep(1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Wait for all driver objects to be available
|
||||||
|
while not (tempDriver and coolantDriver and statusDriver and turbineDriver and burnRateDriver) do
|
||||||
|
print("Waiting for all drivers to be initialized...")
|
||||||
|
sleep(1)
|
||||||
|
end
|
||||||
|
|
||||||
parallel.waitForAll(runMonitors, runDisplay)
|
parallel.waitForAll(runMonitors, runDisplay)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user