mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
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.
|
||||
*/
|
||||
#if !defined(TXC0)
|
||||
#if defined(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
|
||||
|
||||
extern void serialEventRun(void) __attribute__((weak));
|
||||
|
Loading…
x
Reference in New Issue
Block a user