Skip to content

Commit 5a420c0

Browse files
author
Alarus
committed
Update hardware/arduino/cores/arduino/HardwareSerial.cpp
Adding advanced begin (); with the ability to specify the length of bits, parity, stop bits.
1 parent c8490c9 commit 5a420c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardware/arduino/cores/arduino/HardwareSerial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ inline void store_char(unsigned char c, ring_buffer *buffer)
117117
unsigned char c = UDR0;
118118
};
119119
#elif defined(UDR)
120-
if (bit_is_clear(UCSRA, PE)) {
120+
if (bit_is_clear(UCSRA, PE)) {
121121
unsigned char c = UDR;
122122
store_char(c, &rx_buffer);
123123
} else {

0 commit comments

Comments
 (0)