upload: fix timeout when waiting for serial
This commit is contained in:
parent
9aa1235ce3
commit
892d07fdda
|
@ -1,7 +1,7 @@
|
||||||
echo Waiting for %1 serial...
|
echo Waiting for %1 serial...
|
||||||
|
|
||||||
for /l %%x in (1, 1, 40) do (
|
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
|
mode %1 > nul
|
||||||
if ERRORLEVEL 0 goto comPortFound
|
if ERRORLEVEL 0 goto comPortFound
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue