From 7caf2bd2ffa3f197b32bc5f85ee9bb01458c2ec8 Mon Sep 17 00:00:00 2001 From: Methodius Date: Wed, 31 Jan 2024 23:32:37 +0900 Subject: [PATCH] enter t5577 password scene fix --- applications/main/lfrfid/scenes/lfrfid_scene_enter_password.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/main/lfrfid/scenes/lfrfid_scene_enter_password.c b/applications/main/lfrfid/scenes/lfrfid_scene_enter_password.c index 486be136c..87593c94f 100644 --- a/applications/main/lfrfid/scenes/lfrfid_scene_enter_password.c +++ b/applications/main/lfrfid/scenes/lfrfid_scene_enter_password.c @@ -17,7 +17,7 @@ void lfrfid_scene_enter_password_on_enter(void* context) { const uint32_t* password_list = lfrfid_get_t5577_default_passwords(&password_list_size); uint32_t pass = password_list[furi_get_tick() % password_list_size]; - for(uint8_t i = 0; i < 4; i++) app->password[i] = (pass >> (8 * i)) & 0xFF; + for(uint8_t i = 0; i < 4; i++) app->password[4 - (i + 1)] = (pass >> (8 * i)) & 0xFF; } byte_input_set_header_text(byte_input, "Enter the password in hex");