mirror of https://github.com/noisymime/Arduino.git
Fixing Serial.flush() breakage on Leonardo (WestFW).
http://code.google.com/p/arduino/issues/detail?id=1020
This commit is contained in:
parent
24c8bf8081
commit
cd43ca3f7f
|
@ -87,7 +87,14 @@ class HardwareSerial : public Stream
|
||||||
* conditional code in the cpp module.
|
* conditional code in the cpp module.
|
||||||
*/
|
*/
|
||||||
#if !defined(TXC0)
|
#if !defined(TXC0)
|
||||||
|
#if defined(TXC)
|
||||||
#define TXC0 TXC
|
#define TXC0 TXC
|
||||||
|
#elif defined(TXC1)
|
||||||
|
// Some devices have uart1 but no uart0
|
||||||
|
#define TXC0 TXC1
|
||||||
|
#else
|
||||||
|
#error TXC0 not definable in HardwareSerial.h
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern void serialEventRun(void) __attribute__((weak));
|
extern void serialEventRun(void) __attribute__((weak));
|
||||||
|
|
Loading…
Reference in New Issue