Allow more avr variants with build_marlin*
This commit is contained in:
parent
9651d01e1a
commit
1446b5f01d
2 changed files with 8 additions and 6 deletions
|
@ -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…
Reference in a new issue