mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-26 22:40:25 +00:00
lfrfid: clear_t5577: change notification color and cleanup
This commit is contained in:
parent
787eafd7b8
commit
91eed4209d
1 changed files with 2 additions and 3 deletions
|
@ -54,7 +54,7 @@ static void lfrfid_clear_t5577_password_and_config_to_EM(LfRfid* app) {
|
|||
56,
|
||||
AlignCenter,
|
||||
AlignCenter);
|
||||
notification_message(app->notifications, &sequence_blink_start_red);
|
||||
notification_message(app->notifications, &sequence_blink_start_magenta);
|
||||
for(uint8_t i = 0; i < default_passwords_len; i++) {
|
||||
FURI_CRITICAL_ENTER();
|
||||
snprintf(curr_buf, sizeof(curr_buf), "Pass %d of %d", i, default_passwords_len);
|
||||
|
@ -96,8 +96,7 @@ bool lfrfid_scene_clear_t5577_on_event(void* context, SceneManagerEvent event) {
|
|||
|
||||
const uint32_t prev_scene = LfRfidSceneExtraActions;
|
||||
|
||||
if((event.type == SceneManagerEventTypeBack) ||
|
||||
((event.type == SceneManagerEventTypeCustom) && (event.event == LfRfidEventPopupClosed))) {
|
||||
if (event.type == SceneManagerEventTypeCustom && event.event == LfRfidEventPopupClosed) {
|
||||
scene_manager_search_and_switch_to_previous_scene(app->scene_manager, prev_scene);
|
||||
consumed = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue