Skip to content

Commit 6371be0

Browse files
authored
fix high speed communication issue
under high speed communication(tested with 2Mbps), isDataregisterEmptyUART() gives false true and return before the completion of transmission.
1 parent 761e1e6 commit 6371be0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: cores/arduino/SERCOM.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ void SERCOM::enableUART()
112112
void SERCOM::flushUART()
113113
{
114114
// Skip checking transmission completion if data register is empty
115-
if(isDataRegisterEmptyUART())
116-
return;
115+
// if(isDataRegisterEmptyUART())
116+
// return;
117117

118118
// Wait for transmission to complete
119119
while(!sercom->USART.INTFLAG.bit.TXC);

0 commit comments

Comments
 (0)