Fixed HardwareSerial bug introduced in 1.5.3.

Fixes #1568
This commit is contained in:
Cristian Maglie 2013-09-09 11:54:00 +02:00
parent 7dd9f81f39
commit cd7196c592
2 changed files with 4 additions and 1 deletions

View File

@ -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]

View File

@ -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;
};