diff --git a/tools/test8 b/tools/test8 index 51601e05..d353281d 100755 --- a/tools/test8 +++ b/tools/test8 @@ -15,8 +15,8 @@ Syntax: $progname [] Function: test AVRDUDE for v 8.0 release with -c programmer -p part; also leaves a file bak-- use avrdude -c dryrun -xinit= to initialiase part and exit - -r use avrdude -c dryrun -xrandom= to initialiase part and exit + -i use avrdude -c dryrun -xinit= to initialise part and exit + -r use avrdude -c dryrun -xrandom= to initialise part and exit -a pass avrdude option through to avrdude test commands -m use memory list instead of ALL @@ -72,8 +72,8 @@ f="bak-$1-$2.hex:I" if [[ $init -gt -1 || $rand -gt -1 ]]; then how="init=$init"; [ $rand -gt -1 ] && how="random=$rand" avrdude -qqc dryrun -p $2 -U $mem:r:$f -x $how - avrdude -c $1 -p $2 -U $mem:w:$f - echo $progname: $2 initialsed + avrdude "${adopts[@]}" -c $1 -p $2 -U $mem:w:$f + echo $progname: $2 initialised exit 0 fi