Skip to content

Commit

Permalink
Fixing ATmega8 breakage from flush() change. (WestFW)
Browse files Browse the repository at this point in the history
  • Loading branch information
damellis committed Aug 30, 2012
1 parent 222d51e commit 24c8bf8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hardware/arduino/cores/arduino/HardwareSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ class HardwareSerial : public Stream
extern HardwareSerial Serial3;
#endif

/*
* on ATmega8, the uart and its bits are not numbered, so there is no "TXC0"
* definition. It is slightly cleaner to define this here instead of having
* conditional code in the cpp module.
*/
#if !defined(TXC0)
#define TXC0 TXC
#endif

extern void serialEventRun(void) __attribute__((weak));

#endif

0 comments on commit 24c8bf8

Please sign in to comment.