sport_polling cleaning

This commit is contained in:
midelic 2018-01-02 10:54:15 +01:00 committed by GitHub
parent 3061445a65
commit 0c056624eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1042,7 +1042,6 @@ void TelemetryUpdate()
#ifdef SPORT_POLLING
if(USART3_BASE->SR & USART_SR_RXNE)
{
USART3_BASE->SR &= ~USART_SR_RXNE;
if (RxIndex < 16 )
{
if(RxData[0]==TxData[0] && RxData[1]==TxData[1])
@ -1053,7 +1052,6 @@ void TelemetryUpdate()
#endif
if(USART3_BASE->SR & USART_SR_TXE)
{
USART3_BASE->SR &= ~USART_SR_TXE;
#endif
if(tx_head!=tx_tail)
{