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 12b3774 commit 610d4a8Copy full SHA for 610d4a8
cores/arduino/Uart.cpp
@@ -107,7 +107,7 @@ int Uart::read()
107
108
size_t Uart::write(const uint8_t data)
109
{
110
- if (sercom->isDataRegisterEmptyUART()) {
+ if (sercom->isDataRegisterEmptyUART() && txBuffer.available() == 0) {
111
sercom->writeDataUART(data);
112
} else {
113
while(txBuffer.isFull()); // spin lock until a spot opens up in the buffer
0 commit comments