Skip to content

Commit 24c8bf8

Browse files
committed
Fixing ATmega8 breakage from flush() change. (WestFW)
http://code.google.com/p/arduino/issues/detail?id=1019
1 parent 222d51e commit 24c8bf8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

hardware/arduino/cores/arduino/HardwareSerial.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ class HardwareSerial : public Stream
8181
extern HardwareSerial Serial3;
8282
#endif
8383

84+
/*
85+
* on ATmega8, the uart and its bits are not numbered, so there is no "TXC0"
86+
* definition. It is slightly cleaner to define this here instead of having
87+
* conditional code in the cpp module.
88+
*/
89+
#if !defined(TXC0)
90+
#define TXC0 TXC
91+
#endif
92+
8493
extern void serialEventRun(void) __attribute__((weak));
8594

8695
#endif

0 commit comments

Comments
 (0)