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
0c056624eb
commit
2fb82c2b0e
@ -1041,7 +1041,8 @@ void TelemetryUpdate()
|
|||||||
#ifdef STM32_BOARD
|
#ifdef STM32_BOARD
|
||||||
#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