Allow more avr variants with build_marlin*

master
Scott Lahteine 8 years ago
parent 9651d01e1a
commit 1446b5f01d

@ -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

@ -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

Loading…
Cancel
Save