fix warning
This commit is contained in:
parent
665b2346a8
commit
aecf34f27d
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue