From 5a420c034ec9ad4b81c2659220c88212d924be07 Mon Sep 17 00:00:00 2001 From: Alarus Date: Sun, 12 Aug 2012 21:35:48 +0600 Subject: [PATCH] Update hardware/arduino/cores/arduino/HardwareSerial.cpp Adding advanced begin (); with the ability to specify the length of bits, parity, stop bits. --- hardware/arduino/cores/arduino/HardwareSerial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/arduino/cores/arduino/HardwareSerial.cpp b/hardware/arduino/cores/arduino/HardwareSerial.cpp index 820835f04..7edfa84e4 100644 --- a/hardware/arduino/cores/arduino/HardwareSerial.cpp +++ b/hardware/arduino/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 {