1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

removed unused variable channelAddress

This commit is contained in:
Steffen Windoffer 2016-10-29 19:09:46 +02:00
parent d49e66d4ce
commit bd84ca7610

View file

@ -103,23 +103,18 @@ void ws2811LedStripHardwareInit(void)
/* Set hdma_tim instance */ /* Set hdma_tim instance */
hdma_tim.Instance = WS2811_DMA_STREAM; hdma_tim.Instance = WS2811_DMA_STREAM;
uint32_t channelAddress = 0;
switch (WS2811_TIMER_CHANNEL) { switch (WS2811_TIMER_CHANNEL) {
case TIM_CHANNEL_1: case TIM_CHANNEL_1:
timDMASource = TIM_DMA_ID_CC1; timDMASource = TIM_DMA_ID_CC1;
channelAddress = (uint32_t)(&WS2811_TIMER->CCR1);
break; break;
case TIM_CHANNEL_2: case TIM_CHANNEL_2:
timDMASource = TIM_DMA_ID_CC2; timDMASource = TIM_DMA_ID_CC2;
channelAddress = (uint32_t)(&WS2811_TIMER->CCR2);
break; break;
case TIM_CHANNEL_3: case TIM_CHANNEL_3:
timDMASource = TIM_DMA_ID_CC3; timDMASource = TIM_DMA_ID_CC3;
channelAddress = (uint32_t)(&WS2811_TIMER->CCR3);
break; break;
case TIM_CHANNEL_4: case TIM_CHANNEL_4:
timDMASource = TIM_DMA_ID_CC4; timDMASource = TIM_DMA_ID_CC4;
channelAddress = (uint32_t)(&WS2811_TIMER->CCR4);
break; break;
} }