shell: uart: Add TX disabling in uninitialization
Uninitialization of uart transport was missing disabling of TX interrupt. It had to be done by the user before using uart. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
604229b58d
commit
c313474cb0
2 changed files with 1 additions and 1 deletions
|
@ -201,6 +201,7 @@ static int uninit(const struct shell_transport *transport)
|
|||
if (IS_ENABLED(CONFIG_SHELL_BACKEND_SERIAL_INTERRUPT_DRIVEN)) {
|
||||
const struct device *dev = sh_uart->ctrl_blk->dev;
|
||||
|
||||
uart_irq_tx_disable(dev);
|
||||
uart_irq_rx_disable(dev);
|
||||
} else {
|
||||
k_timer_stop(sh_uart->timer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue