\r
UsbCommand resp;\r
\r
- int size = GetCardSize(); \r
char cmdp = param_getchar(Cmd, 0);\r
-\r
- if ( size > -1) \r
- cmdp = (char)(48+size);\r
-\r
- PrintAndLog("Got %d",cmdp);\r
- \r
switch (cmdp) {\r
case '0' : numSectors = 5; break;\r
case '1' : \r
default: numSectors = 16;\r
} \r
\r
- if (cmdp == 'h' || cmdp == 'H') {\r
+ if (strlen(Cmd) > 1 || cmdp == 'h' || cmdp == 'H') {\r
PrintAndLog("Usage: hf mf restore [card memory]");\r
PrintAndLog(" [card memory]: 0 = 320 bytes (Mifare Mini), 1 = 1K (default), 2 = 2K, 4 = 4K");\r
PrintAndLog("");\r
if ( ((atqa & 0xffff) == 0x0008) && (sak == 0x38) ) return 4;\r
\r
\r
- PrintAndLog("BEFOOO 1K %02X", (atqa & 0xff0f));\r
+ //PrintAndLog("BEFOOO 1K %02X", (atqa & 0xff0f));\r
\r
// MIFARE Plus (4 Byte UID or 4 Byte RID)\r
// MIFARE Plus (7 Byte UID)\r