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:
parent
4d351b4846
commit
6cba11f087
5 changed files with 12 additions and 13 deletions
|
|
@ -4,7 +4,9 @@
|
|||
#ifndef MARLIN_H
|
||||
#define MARLIN_H
|
||||
|
||||
#ifndef AT90USB
|
||||
#define HardwareSerial_h // trick to disable the standard HWserial
|
||||
#endif
|
||||
|
||||
#define FORCE_INLINE __attribute__((always_inline)) inline
|
||||
|
||||
|
|
@ -45,7 +47,7 @@
|
|||
|
||||
#include "WString.h"
|
||||
|
||||
#if MOTHERBOARD == 8 // Teensylu
|
||||
#ifdef AT90USB
|
||||
#define MYSERIAL Serial
|
||||
#else
|
||||
#define MYSERIAL MSerial
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue