Commit cd61754
committed
Remove redundant cast in UART transmit
Remove unnecessary (uint32_t) casts when writing transmit data for the GD32H7XX USART in lib-gd32/src/gd32_uart.cpp. The two assignments in Gd32UartTransmit and Gd32UartTransmitString now use USART_TDATA_TDATA & *data++, matching the non-H7 branch and reducing redundancy (and potential compiler warnings).1 parent c9c9e74 commit cd61754
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