Browse Source

uart terminal add missing uart deinit

by Willy-JL
MX 2 years ago
parent
commit
199ce6756a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      base_pack/uart_terminal/uart_terminal_uart.c

+ 2 - 0
base_pack/uart_terminal/uart_terminal_uart.c

@@ -97,6 +97,8 @@ void uart_terminal_uart_free(UART_TerminalUart* uart) {
 
     if(uart->app->uart_ch == FuriHalUartIdUSART1)
         furi_hal_console_enable();
+    else
+        furi_hal_uart_deinit(uart->app->uart_ch);
 
     free(uart);
 }