diff --git a/build/shared/revisions.txt b/build/shared/revisions.txt index 0dd9cc426..fbe67fc06 100644 --- a/build/shared/revisions.txt +++ b/build/shared/revisions.txt @@ -8,6 +8,9 @@ ARDUINO 1.5.4 BETA * sam: fixed wrong SPI initialization (noblepepper) * updated all instances of Adafruit_GFX to the latest version +[core] +* avr: fixed bug introduced with recent optimizations in HardwareSerial (atmega8 cpu) (darryl) + ARDUINO 1.5.3 BETA 2013.08.30 [ide] diff --git a/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp b/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp index e40bfbc0f..9a86fa069 100644 --- a/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp +++ b/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp @@ -91,7 +91,7 @@ inline void store_char(unsigned char c, HardwareSerial *s) #elif defined(UDR) if (bit_is_clear(UCSRA, PE)) { unsigned char c = UDR; - store_char(c, &rx_buffer); + store_char(c, &Serial); } else { unsigned char c = UDR; };