2017-05-23 11:17:41 -07:00
|
|
|
echo Waiting for %1 serial...
|
|
|
|
|
|
|
|
for /l %%x in (1, 1, 40) do (
|
2017-05-23 22:09:26 -07:00
|
|
|
ping -w 100 -n 1 192.0.2.1 > nul
|
2017-05-23 11:17:41 -07:00
|
|
|
mode %1 > nul
|
|
|
|
if ERRORLEVEL 0 goto comPortFound
|
|
|
|
)
|
|
|
|
|
|
|
|
echo timeout waiting for %1 serial
|
|
|
|
|
|
|
|
:comPortFound
|