Skip to content

Commit

Permalink
drivers: serial: uart_rtt: fix multi-channel
Browse files Browse the repository at this point in the history
Populate the `channel` index when constructing configuration structs for
secondary RTT channels. Originally missed in #27704.

Fixes #54955.

Signed-off-by: Jordan Yates <[email protected]>
  • Loading branch information
Jordan Yates authored and nashif committed Feb 25, 2023
1 parent 0b0b8bf commit b83cf1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/serial/uart_rtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ static const struct uart_driver_api uart_rtt_driver_api = {
.up_size = sizeof(uart_rtt##idx##_tx_buf), \
.down_buffer = uart_rtt##idx##_rx_buf, \
.down_size = sizeof(uart_rtt##idx##_rx_buf), \
.channel = idx, \
}

#define UART_RTT_INIT(idx, config) \
Expand Down

0 comments on commit b83cf1f

Please sign in to comment.