Add check

This commit is contained in:
MX 2023-06-15 03:08:56 +03:00
parent 1f3e621a31
commit 3c2d56e46b
No known key found for this signature in database
GPG key ID: 7CCC66B7DBDD1C83

View file

@ -106,7 +106,9 @@ void wifi_marauder_uart_free(WifiMarauderUart* uart) {
furi_thread_free(uart->rx_thread); furi_thread_free(uart->rx_thread);
furi_hal_uart_set_irq_cb(uart->channel, NULL, NULL); furi_hal_uart_set_irq_cb(uart->channel, NULL, NULL);
if(uart->channel == FuriHalUartIdLPUART1) {
furi_hal_uart_deinit(uart->channel); furi_hal_uart_deinit(uart->channel);
}
furi_hal_console_enable(); furi_hal_console_enable();
free(uart); free(uart);