mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Fix UART deinit issues and crashes
Remove interrupt callback before stopping thread Prevents race condition of interrupt setting flag on free'd thread Also correctly stop async rx events
This commit is contained in:
@@ -147,6 +147,7 @@ SubGhzGPS* subghz_gps_init() {
|
||||
void subghz_gps_deinit(SubGhzGPS* subghz_gps) {
|
||||
furi_assert(subghz_gps);
|
||||
|
||||
furi_hal_serial_async_rx_stop(subghz_gps->serial_handle);
|
||||
furi_hal_serial_deinit(subghz_gps->serial_handle);
|
||||
furi_hal_serial_control_release(subghz_gps->serial_handle);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user