MaJerle / stm32-usart-uart-dma-rx-tx

STM32 examples for USART using DMA for efficient RX and TX transmission
MIT License
1.35k stars 338 forks source link

Uninitialized variable #7

Closed maroviher closed 4 years ago

maroviher commented 4 years ago

in the following line https://github.com/MaJerle/stm32-usart-uart-dma-rx-tx/blob/master/projects/usart_rx_idle_line_irq_ringbuff_G0/Src/main.c#L92 you use a not initialized variable: static size_t old_pos; Is it a bug?

MaJerle commented 4 years ago

Static variables are automatically set to zero as per C standard.