From 3375daee9ec98977c69ef19ac1f14317bfdd80d9 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 16 Dec 2016 12:50:44 +0100 Subject: [PATCH] CHG: 'LF VISA2000 CLONE' fixed the wrong blocknum index in output. Thanks @martin for pointing it out. --- client/cmdlfvisa2000.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/cmdlfvisa2000.c b/client/cmdlfvisa2000.c index af41f320..9148a435 100644 --- a/client/cmdlfvisa2000.c +++ b/client/cmdlfvisa2000.c @@ -118,10 +118,8 @@ int CmdVisa2kClone(const char *Cmd) { PrintAndLog("Preparing to clone Visa2000 to T55x7 with CardId: %u", id); PrintAndLog("Blk | Data "); PrintAndLog("----+------------"); - PrintAndLog(" 00 | 0x%08x", blocks[0]); - PrintAndLog(" 01 | 0x%08x", blocks[1]); - PrintAndLog(" 02 | 0x%08x", blocks[2]); - PrintAndLog(" 02 | 0x%08x", blocks[3]); + for(int i = 0; i<4; ++i) + PrintAndLog(" %02d | 0x%08x", i , blocks[i]); UsbCommand resp; UsbCommand c = {CMD_T55XX_WRITE_BLOCK, {0,0,0}}; -- 2.39.2