Skip to content

Commit f8f48c8

Browse files
committed
Last-minute fixes for the last-minute fixes
1 parent 3f817dc commit f8f48c8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

applications/main/lfrfid/scenes/lfrfid_scene_t5577_password_input.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ bool lfrfid_scene_t5577_password_input_on_event(void* context, SceneManagerEvent
7777
}
7878
}
7979
} else if(event.type == SceneManagerEventTypeBack) {
80-
scene_manager_set_scene_state(scene_manager, LfRfidSceneSaveData, 0);
81-
size_t size = protocol_dict_get_data_size(app->dict, app->protocol_id);
82-
protocol_dict_set_data(app->dict, app->protocol_id, app->old_key_data, size);
80+
if(app->current_password_set) {
81+
app->current_password_set = false;
82+
}
8383
}
8484

8585
return consumed;

applications/main/lfrfid/scenes/lfrfid_scene_t5577_passwords.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ void lfrfid_scene_t5577_passwords_on_enter(void* context) {
1818
Submenu* submenu = app->submenu;
1919

2020
lfrfid_worker_set_current_t5577_password(app->lfworker, 0);
21-
app->t5577_current_password = 0;
21+
memset(app->t5577_current_password, 0, T5577_PASSWORD_SIZE);
2222
lfrfid_worker_set_new_t5577_password(app->lfworker, 0);
23-
app->t5577_new_password = 0;
23+
memset(app->t5577_new_password, 0, T5577_PASSWORD_SIZE);
2424
lfrfid_worker_set_write_mode(app->lfworker, LFRFIDWorkerWriteModeDefault);
2525
app->current_password_set = false;
2626

0 commit comments

Comments
 (0)