Commit aecadd2
committed
Cast UART0 DMA count to uint16_t
Add an explicit `static_cast<uint16_t>` when assigning the computed DMA RX count to `sv_rx_count.rx`, ensuring type-safe conversion from the DMA transfer count expression and avoiding implicit narrowing warnings.1 parent 96fa09b commit aecadd2
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