Skip to content

Commit cd7196c

Browse files
committed
Fixed HardwareSerial bug introduced in 1.5.3.
Fixes #1568
1 parent 7dd9f81 commit cd7196c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build/shared/revisions.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ ARDUINO 1.5.4 BETA
88
* sam: fixed wrong SPI initialization (noblepepper)
99
* updated all instances of Adafruit_GFX to the latest version
1010

11+
[core]
12+
* avr: fixed bug introduced with recent optimizations in HardwareSerial (atmega8 cpu) (darryl)
13+
1114
ARDUINO 1.5.3 BETA 2013.08.30
1215

1316
[ide]

hardware/arduino/avr/cores/arduino/HardwareSerial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ inline void store_char(unsigned char c, HardwareSerial *s)
9191
#elif defined(UDR)
9292
if (bit_is_clear(UCSRA, PE)) {
9393
unsigned char c = UDR;
94-
store_char(c, &rx_buffer);
94+
store_char(c, &Serial);
9595
} else {
9696
unsigned char c = UDR;
9797
};

0 commit comments

Comments
 (0)