Update hardware/arduino/cores/arduino/HardwareSerial.cpp

Adding advanced begin (); with the ability to specify the length of bits, parity, stop bits.
This commit is contained in:
Alarus 2012-08-12 21:35:48 +06:00
parent c8490c9f7b
commit 5a420c034e
1 changed files with 1 additions and 1 deletions

View File

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