We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 610d4a8 commit 46653a6Copy full SHA for 46653a6
cores/arduino/Uart.cpp
@@ -62,6 +62,10 @@ void Uart::flush()
62
63
void Uart::IrqHandler()
64
{
65
+ if (sercom->availableDataUART()) {
66
+ rxBuffer.store_char(sercom->readDataUART());
67
+ }
68
+
69
if (sercom->isDataRegisterEmptyUART()) {
70
if (txBuffer.available()) {
71
uint8_t data = txBuffer.read_char();
@@ -72,10 +76,6 @@ void Uart::IrqHandler()
72
76
}
73
77
74
78
75
- if (sercom->availableDataUART()) {
- rxBuffer.store_char(sercom->readDataUART());
- }
-
79
if (sercom->isUARTError()) {
80
sercom->acknowledgeUARTError();
81
// TODO: if (sercom->isBufferOverflowErrorUART()) ....
0 commit comments