aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
authorAlarus <alarus@qip.ru>2012-08-12 21:35:48 +0600
committerAlarus <alarus@qip.ru>2012-08-12 21:35:48 +0600
commited699cf636cfe2e269ef901f3762b213cf46632f (patch)
tree873e564267120f3023c1e7103cbe90c41b24c9dc /cores/arduino
parent1f6dd923134ed2f61bc5a33cf3fd2a52e41301f8 (diff)
Update hardware/arduino/cores/arduino/HardwareSerial.cpp
Adding advanced begin (); with the ability to specify the length of bits, parity, stop bits.
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 820835f..7edfa84 100644
--- a/cores/arduino/HardwareSerial.cpp
+++ b/cores/arduino/HardwareSerial.cpp
@@ -117,7 +117,7 @@ inline void store_char(unsigned char c, ring_buffer *buffer)
unsigned char c = UDR0;
};
#elif defined(UDR)
- if (bit_is_clear(UCSRA, PE)) {
+ if (bit_is_clear(UCSRA, PE)) {
unsigned char c = UDR;
store_char(c, &rx_buffer);
} else {