Commit 46ee22d
committed
Cast UART0 DMA count to uint16_t
Add an explicit `static_cast<uint16_t>` when computing `sv_rx_count.rx` in `USART0_IRQHandler` to avoid implicit narrowing from `dma_transfer_number_get(...)` and make the intended RX counter type conversion clear.1 parent 926e8c1 commit 46ee22d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments