Fix NULL pointers

This commit is contained in:
Sil333033
2023-07-29 00:18:25 +02:00
parent 1bf4d64bf4
commit 796d0992fa
5 changed files with 5 additions and 6 deletions

View File

@@ -55,6 +55,7 @@ static int32_t uart_worker(void* context) {
}
}
furi_hal_uart_set_irq_cb(uart->channel, NULL, NULL);
furi_stream_buffer_free(uart->rx_stream);
return 0;
@@ -99,7 +100,6 @@ void esp_flasher_uart_free(EspFlasherUart* uart) {
furi_thread_join(uart->rx_thread);
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);
}