more -Wcast-qual

This commit is contained in:
hathach
2021-10-17 17:32:03 +07:00
parent a5f516893b
commit 31cd366935
17 changed files with 20 additions and 57 deletions

View File

@@ -257,7 +257,7 @@ int board_uart_read(uint8_t* buf, int len)
int board_uart_write(void const * buf, int len)
{
HAL_UART_Transmit(&UartHandle, (uint8_t*) buf, len, 0xffff);
HAL_UART_Transmit(&UartHandle, (uint8_t*)(uintptr_t) buf, len, 0xffff);
return len;
}