mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-12-06 21:13:16 +00:00
STM32: align STM32 code with other platforms for tx_pause/tx_resume
This commit is contained in:
@@ -620,12 +620,10 @@ void TelemetryUpdate()
|
||||
#endif
|
||||
}
|
||||
if (tx_tail == tx_head)
|
||||
#ifdef STM32_BOARD
|
||||
USART3_BASE->CR1 &= ~USART_CR1_TXEIE;//disable interrupt
|
||||
}
|
||||
#else
|
||||
tx_pause(); // Check if all data is transmitted . if yes disable transmitter UDRE interrupt
|
||||
#endif
|
||||
#ifdef STM32_BOARD
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#else //BASH_SERIAL
|
||||
|
||||
Reference in New Issue
Block a user