diff options
Diffstat (limited to 'upload.sh')
-rwxr-xr-x | upload.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,6 +1,10 @@ #! /bin/sh HEXFILE=$1 -[ -z "$HEXFILE" ] && exit 1 + +if [ -z "$HEXFILE" ]; then + echo "usage: $0 [hexfile]" + exit 1 +fi avrdude -c usbtiny -p attiny828 -U flash:w:$HEXFILE |