Stop redefining MOTHERBOARD and #define AT90USB instead. Also put #ifndef AT90USB around the HardwareSerial_h trick, so now Printrboard / Brainwave support compiles on Arduino 1.0.2 as well.

This commit is contained in:
Johann Rocholl
2012-12-09 01:32:09 -08:00
parent 4d351b4846
commit 6cba11f087
5 changed files with 12 additions and 13 deletions

View File

@ -963,9 +963,8 @@
* See http://reprap.org/wiki/Printrboard for more info
****************************************************************************************/
#if MOTHERBOARD == 8 || MOTHERBOARD == 81
#undef MOTHERBOARD
#define MOTHERBOARD 8 // Disable MarlinSerial etc.
#define KNOWN_BOARD 1
#define AT90USB 1286 // Disable MarlinSerial etc.
#ifndef __AVR_AT90USB1286__
#error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
@ -1026,9 +1025,8 @@
https://github.com/unrepentantgeek/brainwave-arduino
****************************************************************************************/
#if MOTHERBOARD == 82
#undef MOTHERBOARD
#define MOTHERBOARD 8 // Disable MarlinSerial etc.
#define KNOWN_BOARD 1
#define AT90USB 646 // Disable MarlinSerial etc.
#ifndef __AVR_AT90USB646__
#error Oops! Make sure you have 'Brainwave' selected from the 'Tools -> Boards' menu.