diff options
author | px4dev <px4@purgatory.org> | 2013-07-04 23:19:24 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-07-04 23:19:24 -0700 |
commit | 94b638d848a62312a9cd6722779965d211565d3c (patch) | |
tree | 4f3c0ebb2a4d088b2026b10343d6e2a07a35644f /src/modules/px4iofirmware | |
parent | 43210413a98dfe32302cd99c86847729100133fa (diff) | |
download | px4-firmware-94b638d848a62312a9cd6722779965d211565d3c.tar.gz px4-firmware-94b638d848a62312a9cd6722779965d211565d3c.tar.bz2 px4-firmware-94b638d848a62312a9cd6722779965d211565d3c.zip |
One more piece of paranoia when resetting DMA
Diffstat (limited to 'src/modules/px4iofirmware')
-rw-r--r-- | src/modules/px4iofirmware/serial.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/px4iofirmware/serial.c b/src/modules/px4iofirmware/serial.c index b51ff87d3..93cff26c2 100644 --- a/src/modules/px4iofirmware/serial.c +++ b/src/modules/px4iofirmware/serial.c @@ -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); |