From 6371be0d4e4acaec8702622b46f5e54da414adde Mon Sep 17 00:00:00 2001 From: Will Son Date: Thu, 9 Jul 2020 10:15:22 +0900 Subject: [PATCH] fix high speed communication issue under high speed communication(tested with 2Mbps), isDataregisterEmptyUART() gives false true and return before the completion of transmission. --- cores/arduino/SERCOM.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/arduino/SERCOM.cpp b/cores/arduino/SERCOM.cpp index 8bf5a4521..b9fbf05b9 100644 --- a/cores/arduino/SERCOM.cpp +++ b/cores/arduino/SERCOM.cpp @@ -112,8 +112,8 @@ void SERCOM::enableUART() void SERCOM::flushUART() { // Skip checking transmission completion if data register is empty - if(isDataRegisterEmptyUART()) - return; +// if(isDataRegisterEmptyUART()) +// return; // Wait for transmission to complete while(!sercom->USART.INTFLAG.bit.TXC);