mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Fix subghz crash on exit with marauder connected
This commit is contained in:
@@ -138,9 +138,6 @@ SubGhzGPS* subghz_gps_init() {
|
||||
|
||||
void subghz_gps_deinit(SubGhzGPS* subghz_gps) {
|
||||
furi_assert(subghz_gps);
|
||||
furi_thread_free(subghz_gps->thread);
|
||||
|
||||
free(subghz_gps);
|
||||
|
||||
furi_hal_uart_set_irq_cb(UART_CH, NULL, NULL);
|
||||
if(UART_CH == FuriHalUartIdLPUART1) {
|
||||
@@ -148,6 +145,10 @@ void subghz_gps_deinit(SubGhzGPS* subghz_gps) {
|
||||
} else {
|
||||
furi_hal_console_enable();
|
||||
}
|
||||
|
||||
furi_thread_free(subghz_gps->thread);
|
||||
|
||||
free(subghz_gps);
|
||||
}
|
||||
|
||||
void subghz_gps_start(SubGhzGPS* subghz_gps) {
|
||||
|
||||
Reference in New Issue
Block a user