mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-13 10:17:55 +00:00
sport_polling cleaning
This commit is contained in:
parent
3061445a65
commit
0c056624eb
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user