Increase timeout to cope with longer time required to flash a big file

pull/206/head
dannybackx 8 years ago
parent 7dd77c6ad4
commit 7f5d576212
  1. 2
      megaflash

@ -99,7 +99,7 @@ done
# ===== Send HEX file
[[ -n "$verbose" ]] && echo "Sending HEX file for programming" >&2
sync=`curl -m 10 $v -s -g -d "@$hex" "http://$hostname/pgmmega/upload"`
sync=`curl -m 20 $v -s -g -d "@$hex" "http://$hostname/pgmmega/upload"`
echo $sync
if [[ $? != 0 || ! "$sync" =~ ^Success ]]; then
echo "Error programming AVR" >&2

Loading…
Cancel
Save