mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-21 15:54:39 +01:00
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
c8490c9f7b
commit
5a420c034e
@ -117,7 +117,7 @@ inline void store_char(unsigned char c, ring_buffer *buffer)
|
|||||||
unsigned char c = UDR0;
|
unsigned char c = UDR0;
|
||||||
};
|
};
|
||||||
#elif defined(UDR)
|
#elif defined(UDR)
|
||||||
if (bit_is_clear(UCSRA, PE)) {
|
if (bit_is_clear(UCSRA, PE)) {
|
||||||
unsigned char c = UDR;
|
unsigned char c = UDR;
|
||||||
store_char(c, &rx_buffer);
|
store_char(c, &rx_buffer);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user