Commit 227a1cf
committed
Remove redundant cast in UART transmit writes
Simplify UART transmit code in lib-gd32/src/gd32_uart.cpp by removing unnecessary (uint32_t) casts when writing bytes to USART_TDATA in Gd32UartTransmit and Gd32UartTransmitString. This cleans up the expressions without changing behavior and may reduce compiler warnings.1 parent 80cfdd7 commit 227a1cf
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