fix warning

This commit is contained in:
chinky 2023-06-27 21:57:23 +08:00
parent 665b2346a8
commit aecf34f27d
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ static void uart_isr(struct rt_serial_device *serial)
}
}
uart_err_count_t *err_count = &uart->serial.parent.user_data;
uart_err_count_t *err_count = (uart_err_count_t *)&uart->serial.parent.user_data;
err_count->count++;
if (err_flag)
{