sport polling cleaning

This commit is contained in:
midelic 2018-01-07 15:39:32 +02:00
parent 0c056624eb
commit 2fb82c2b0e

View File

@ -1042,6 +1042,7 @@ void TelemetryUpdate()
#ifdef SPORT_POLLING
if(USART3_BASE->SR & USART_SR_RXNE)
{
USART3_BASE->SR &= ~USART_SR_RXNE;//important
if (RxIndex < 16 )
{
if(RxData[0]==TxData[0] && RxData[1]==TxData[1])