-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
I noticed the following code in HardwareSerial::_tx_udr_empty_irq
:
ArduinoCore-avr/cores/arduino/HardwareSerial.cpp
Lines 103 to 107 in 855ea01
#ifdef MPCM0 | |
*_ucsra = ((*_ucsra) & ((1 << U2X0) | (1 << MPCM0))) | (1 << TXC0); | |
#else | |
*_ucsra = ((*_ucsra) & ((1 << U2X0) | (1 << TXC0))); | |
#endif |
Shouldn't
*_ucsra = ((*_ucsra) & ((1 << U2X0) | (1 << TXC0)));
be
*_ucsra = ((*_ucsra) & ((1 << U2X0))) | (1 << TXC0);
just like the line in #ifdef MPCM0
?
Because now it preserves the TXC0
bit instead of setting it?
Metadata
Metadata
Assignees
Labels
No labels