mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-13 18:27:55 +00:00
sport polling cleaning
This commit is contained in:
parent
0c056624eb
commit
2fb82c2b0e
@ -1042,6 +1042,7 @@ void TelemetryUpdate()
|
|||||||
#ifdef SPORT_POLLING
|
#ifdef SPORT_POLLING
|
||||||
if(USART3_BASE->SR & USART_SR_RXNE)
|
if(USART3_BASE->SR & USART_SR_RXNE)
|
||||||
{
|
{
|
||||||
|
USART3_BASE->SR &= ~USART_SR_RXNE;//important
|
||||||
if (RxIndex < 16 )
|
if (RxIndex < 16 )
|
||||||
{
|
{
|
||||||
if(RxData[0]==TxData[0] && RxData[1]==TxData[1])
|
if(RxData[0]==TxData[0] && RxData[1]==TxData[1])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user