We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 158df98 commit aa400fdCopy full SHA for aa400fd
cores/arduino/Uart.cpp
@@ -55,6 +55,8 @@ void Uart::end()
55
56
void Uart::flush()
57
{
58
+ while(txBuffer.available()); // wait until TX buffer is empty
59
+
60
sercom->flushUART();
61
}
62
0 commit comments