mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-25 06:13:14 +03:00
[FL-2602] Infrared: Fix crash when messing with SD card (#1339)
* Fix crash after removing SD card and exiting * Show an error if SD card was removed on Universal remote screen
This commit is contained in:
parent
556af0b82b
commit
9868a65c15
@ -99,6 +99,7 @@ bool infrared_brute_force_start(
|
||||
success = flipper_format_file_open_existing(brute_force->ff, brute_force->db_filename);
|
||||
if(!success) {
|
||||
flipper_format_free(brute_force->ff);
|
||||
brute_force->ff = NULL;
|
||||
furi_record_close("storage");
|
||||
}
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ bool infrared_scene_universal_common_on_event(void* context, SceneManagerEvent e
|
||||
infrared_play_notification_message(
|
||||
infrared, InfraredNotificationMessageBlinkSend);
|
||||
} else {
|
||||
scene_manager_previous_scene(scene_manager);
|
||||
scene_manager_next_scene(scene_manager, InfraredSceneErrorDatabases);
|
||||
}
|
||||
consumed = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user