tools: wasptool: Increase OTA reboot timeout

Currently --ota works "most of the time" but occasionally the OTA
fails to start. Let's give the reset an extra second to settle!

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
Daniel Thompson 2021-09-10 21:14:37 +01:00
parent ba8546dd60
commit da71d39aa4

View file

@ -447,7 +447,7 @@ if __name__ == '__main__':
if args.ota:
handle_reset(console, ota=True)
time.sleep(1.0)
time.sleep(2.0)
dfu = os.path.dirname(sys.argv[0]) + '/ota-dfu/dfu.py'
os.execl(dfu, dfu, '-z', args.ota, '-a', macaddr, '--legacy')