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:
parent
1f6dd92313
commit
ed699cf636
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue