mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 02:08:35 -07:00
Fix NULL pointers
This commit is contained in:
@@ -53,6 +53,7 @@ static int32_t uart_worker(void* context) {
|
||||
}
|
||||
}
|
||||
|
||||
furi_hal_uart_set_irq_cb(UART_CH, NULL, NULL);
|
||||
furi_stream_buffer_free(uart->rx_stream);
|
||||
|
||||
return 0;
|
||||
@@ -94,7 +95,6 @@ void wifi_deauther_uart_free(WifideautherUart* uart) {
|
||||
furi_thread_join(uart->rx_thread);
|
||||
furi_thread_free(uart->rx_thread);
|
||||
|
||||
furi_hal_uart_set_irq_cb(UART_CH, NULL, NULL);
|
||||
if(UART_CH == FuriHalUartIdLPUART1) {
|
||||
furi_hal_uart_deinit(UART_CH);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user