forked from Archive/PX4-Autopilot
One more piece of paranoia when resetting DMA
This commit is contained in:
parent
43210413a9
commit
94b638d848
|
@ -286,7 +286,9 @@ static void
|
|||
dma_reset(void)
|
||||
{
|
||||
rCR3 &= ~(USART_CR3_DMAT | USART_CR3_DMAR);
|
||||
|
||||
(void)rSR;
|
||||
(void)rDR;
|
||||
(void)rDR;
|
||||
|
||||
/* kill any pending DMA */
|
||||
stm32_dmastop(tx_dma);
|
||||
|
|
Loading…
Reference in New Issue