Commit 4544ab8
committed
Remove redundant cast in UART transmit assignments
Simplify assignments to USART_TDATA in gd32_uart.cpp by removing explicit (uint32_t) casts when masking and writing byte data. Updated both Gd32UartTransmit and Gd32UartTransmitString for the GD32H7XX branch to rely on implicit integer promotion, reducing unnecessary casts and potential compiler warnings.1 parent 071752a commit 4544ab8
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| |||
0 commit comments