Skip to content

Commit 3ca71c9

Browse files
ndrs-pstaescolar
authored andcommitted
drivers: serial: ra_sci: add missing break in callback_adapter
Added missing `break` statement in `uart_ra_sci_callback_adapter` for the `UART_EVENT_RX_COMPLETE` case. Without it, `async_evt_rx_err()` would be called, which is not the desired operation. Signed-off-by: Pisit Sawangvonganan <[email protected]>
1 parent f446907 commit 3ca71c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/serial/uart_renesas_ra_sci.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,7 @@ static void uart_ra_sci_callback_adapter(struct st_uart_callback_arg *fsp_args)
864864
break;
865865
case UART_EVENT_RX_COMPLETE:
866866
async_evt_rx_complete(dev);
867+
break;
867868
case UART_EVENT_ERR_PARITY:
868869
async_evt_rx_err(dev, UART_ERROR_PARITY);
869870
break;

0 commit comments

Comments
 (0)