mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2026-12-06 07:37:38 +00:00
STM32: align STM32 code with other platforms for tx_pause/tx_resume
This commit is contained in:
1 parent
909fb2eb2b
commit
f56ca6318a
4 files changed
+39
-47
No files matched your search
@@ -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