This commit is contained in:
Baipyrus 2023-10-29 19:39:07 +01:00
parent 7e02ed1e06
commit e7867aabcc

View File

@ -153,7 +153,7 @@ function init_modem(options, system, name)
system.modem.close(1)
end
function wait_to_start(system)
function wait_to_start(options, system)
-- double timer because waiting on purpose
local timer_id = os.startTimer(options.timeout*2)
while true do
@ -204,7 +204,8 @@ function wait_for_components(options, system, component, name)
os.sleep(options.timeout)
end
if wait_to_start(system) then break end
-- only continue if server says go
if wait_to_start(options, system) then break end
end
end