Extend timeout waiting for device to appear

Tweak retry message for clarity
pull/351/head
Colin Kuebler 2019-10-26 14:07:30 -04:00 committed by GitHub
parent 3b2b5b8f4e
commit 3c246a9511
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ echo "Starting smart config pairing procedure"
echo "Waiting for the device to install the intermediate firmware"
i=60
i=120
while ! ping -c 1 -W 1 -n 10.42.42.42 &> /dev/null; do
printf .
if (( --i == 0 )); then
@ -81,7 +81,7 @@ while ! ping -c 1 -W 1 -n 10.42.42.42 &> /dev/null; do
echo "Device did not appear with the intermediate firmware"
echo "Check the *.log files in the scripts folder"
pkill -f smartconfig/main.py && echo "Stopping smart config"
read -p "Do you want to flash another device? [y/N] " -n 1 -r
read -p "Do you want to try flashing another device? [y/N] " -n 1 -r
echo
continue 2
fi