We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91a405c commit da984c9Copy full SHA for da984c9
hardware/arduino/avr/cores/arduino/HardwareSerial.cpp
@@ -337,7 +337,7 @@ int HardwareSerial::read(void)
337
void HardwareSerial::flush()
338
{
339
// UDR is kept full while the buffer is not empty, so TXC triggers when EMPTY && SENT
340
- while (transmitting && ! (*_ucsra & _BV(TXC0)));
+ while (transmitting && bit_is_clear(*_ucsra, TXC0));
341
transmitting = false;
342
}
343
0 commit comments