Skip to content

Commit

Permalink
Extend timeout waiting for device to appear
Browse files Browse the repository at this point in the history
Tweak retry message for clarity
  • Loading branch information
kueblc authored Oct 26, 2019
1 parent 3b2b5b8 commit 3c246a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start_flash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ 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
echo
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
Expand Down

0 comments on commit 3c246a9

Please sign in to comment.