From e739aeeb1080fcdd32a8b825cf9a559b450e51da Mon Sep 17 00:00:00 2001 From: Piyamate Wisanuvej Date: Tue, 26 Sep 2023 10:08:40 +0700 Subject: [PATCH] bugfix t5577_write_with_pass --- lib/lfrfid/tools/t5577.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lfrfid/tools/t5577.c b/lib/lfrfid/tools/t5577.c index a931f02cf..666a5c8fe 100644 --- a/lib/lfrfid/tools/t5577.c +++ b/lib/lfrfid/tools/t5577.c @@ -110,9 +110,9 @@ void t5577_write_with_pass(LFRFIDT5577* data, uint32_t password) { t5577_start(); FURI_CRITICAL_ENTER(); for(size_t i = 0; i < data->blocks_to_write; i++) { - t5577_write_block_pass(0, false, data->block[i], true, password); + t5577_write_block_pass(i, false, data->block[i], true, password); } t5577_write_reset(); FURI_CRITICAL_EXIT(); t5577_stop(); -} \ No newline at end of file +}