Allow more avr variants with build_marlin*

This commit is contained in:
Scott Lahteine 2017-06-25 14:16:28 -05:00
parent 9651d01e1a
commit 1446b5f01d
2 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,8 @@
#!/usr/bin/env bash
arduino --verify --board arduino:avr:mega:cpu=atmega2560 Marlin/Marlin.ino
case "$#" in
0 ) BOARD=arduino:avr:mega:cpu=atmega2560 ;;
* ) BOARD=arduino:avr:$1 ;;
esac
arduino --verify --board $BOARD Marlin/Marlin.ino

View File

@ -1,7 +1,4 @@
#!/usr/bin/env bash
if arduino --verify --board arduino:avr:mega:cpu=atmega2560 Marlin/Marlin.ino ; then
return 1
else
return 0
fi
build_marlin $@ && exit 0
exit 1