mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 13:03:13 +00:00
Add check
This commit is contained in:
parent
1f3e621a31
commit
3c2d56e46b
1 changed files with 3 additions and 1 deletions
|
@ -106,7 +106,9 @@ void wifi_marauder_uart_free(WifiMarauderUart* uart) {
|
|||
furi_thread_free(uart->rx_thread);
|
||||
|
||||
furi_hal_uart_set_irq_cb(uart->channel, NULL, NULL);
|
||||
if(uart->channel == FuriHalUartIdLPUART1) {
|
||||
furi_hal_uart_deinit(uart->channel);
|
||||
}
|
||||
furi_hal_console_enable();
|
||||
|
||||
free(uart);
|
||||
|
|
Loading…
Reference in a new issue