Fix telemetry protocol switching on Horus (Fix #4404) (#4450)

* Cosmetics

* Fixes #4404

* [9XR-PRO] Telemetry bug

* DMA apparently doesn't like being reinitialized before a deinit
This commit is contained in:
Bertrand Songis
2017-02-14 09:43:36 +01:00
committed by Andre Bernet
parent 5fc685d598
commit 777707db43
3 changed files with 16 additions and 7 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ void UART2_Configure(uint32_t baudrate, uint32_t masterClock, int mode)
pUsart->US_CR = US_CR_RSTRX | US_CR_RSTTX | US_CR_RXDIS | US_CR_TXDIS;
// Configure mode
if (mode == TELEMETRY_SERIAL_8E2)
if (mode & TELEMETRY_SERIAL_8E2)
pUsart->US_MR = 0x000020C0 ;
else
pUsart->US_MR = 0x000008C0 ; // NORMAL, No Parity, 8 bit