aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2013-09-09 11:54:00 +0200
committerCristian Maglie <c.maglie@bug.st>2013-09-09 13:09:27 +0200
commiteb45bb95e0141a52bbb290d841aa1e42127519ce (patch)
tree8df1c8321a94e5c3a7fa2f6a09c97383e8bc15cd /cores/arduino
parentc22caea21fe60da53938fd3e9a8619c5e0d9f2ae (diff)
Fixed HardwareSerial bug introduced in 1.5.3.
Fixes #1568
Diffstat (limited to 'cores/arduino')
-rw-r--r--cores/arduino/HardwareSerial.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/HardwareSerial.cpp b/cores/arduino/HardwareSerial.cpp
index e40bfbc..9a86fa0 100644
--- a/cores/arduino/HardwareSerial.cpp
+++ b/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;
};