mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-20 21:01:25 +03:00
Fixing Serial.flush() breakage on Leonardo (WestFW).
http://code.google.com/p/arduino/issues/detail?id=1020
This commit is contained in:
@ -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));
|
||||||
|
Reference in New Issue
Block a user