t55xx dump - print header

This commit is contained in:
iceman1001 2024-02-20 11:13:31 +01:00
commit 1fe3477bfc

View file

@ -398,7 +398,7 @@ int t55xxWrite(uint8_t block, bool page1, bool usepwd, bool testMode, uint32_t p
void printT5xxHeader(uint8_t page) { void printT5xxHeader(uint8_t page) {
PrintAndLogEx(NORMAL, ""); PrintAndLogEx(NORMAL, "");
PrintAndLogEx(SUCCESS, "Page " _YELLOW_("%d"), page); PrintAndLogEx(SUCCESS, _YELLOW_("Page %d"), page);
PrintAndLogEx(SUCCESS, "blk | hex data | binary | ascii"); PrintAndLogEx(SUCCESS, "blk | hex data | binary | ascii");
PrintAndLogEx(SUCCESS, "----+----------+----------------------------------+-------"); PrintAndLogEx(SUCCESS, "----+----------+----------------------------------+-------");
} }
@ -2282,6 +2282,9 @@ static int CmdT55xxDump(const char *Cmd) {
bool success = true; bool success = true;
PrintAndLogEx(NORMAL, "");
PrintAndLogEx(INFO, "------------------------- " _CYAN_("T55xx tag memory") " -----------------------------");
// Due to the few different T55xx cards and number of blocks supported // Due to the few different T55xx cards and number of blocks supported
// will save the dump file if ALL page 0 is OK // will save the dump file if ALL page 0 is OK
printT5xxHeader(0); printT5xxHeader(0);