From 7e789ccc694f3a20a33aeddfe8f701c9fcbf07a0 Mon Sep 17 00:00:00 2001 From: Alessio Morale Date: Thu, 25 Sep 2014 00:59:39 +0200 Subject: [PATCH] OP-1379 - Clear output pin at the end of dma cycle --- flight/pios/stm32f4xx/pios_ws2811.c | 1 + 1 file changed, 1 insertion(+) diff --git a/flight/pios/stm32f4xx/pios_ws2811.c b/flight/pios/stm32f4xx/pios_ws2811.c index b126a08d9..4b8e9d987 100644 --- a/flight/pios/stm32f4xx/pios_ws2811.c +++ b/flight/pios/stm32f4xx/pios_ws2811.c @@ -342,6 +342,7 @@ void PIOS_WS2811_Update() void PIOS_WS2811_DMA_irq_handler() { + pios_ws2811_pin_cfg->gpio->BSRRH = dmaSource[0]; pios_ws2811_cfg->timer->CR1 &= (uint16_t) ~TIM_CR1_CEN; DMA_ClearFlag(pios_ws2811_cfg->streamCh1, pios_ws2811_cfg->irq.flags); DMA_Cmd(pios_ws2811_cfg->streamCh2, DISABLE);