upload: fix timeout when waiting for serial

This commit is contained in:
Daniel Fekete 2017-05-24 07:09:26 +02:00
parent 9aa1235ce3
commit 892d07fdda
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
echo Waiting for %1 serial...
for /l %%x in (1, 1, 40) do (
ping -w 100 -n 1 127.0.0.1 > nul
ping -w 100 -n 1 192.0.2.1 > nul
mode %1 > nul
if ERRORLEVEL 0 goto comPortFound
)