fixed iso14443b snoop, plus compiling issue of redefined parameter, please take care about this next time before a commit
This commit is contained in:
@@ -403,7 +403,7 @@ int CmdHF14AMfRestore1k(const char *Cmd)
|
||||
FILE *fdump;
|
||||
FILE *fkeys;
|
||||
|
||||
char c;
|
||||
char ch;
|
||||
|
||||
if ((fdump = fopen("dumpdata.bin","rb")) == NULL) {
|
||||
PrintAndLog("Could not find file dump.bin");
|
||||
@@ -447,8 +447,8 @@ int CmdHF14AMfRestore1k(const char *Cmd)
|
||||
|
||||
PrintAndLog("Writing to block %2d: %s Confirm? [Y,N]", i*4+j, sprint_hex(bldata, 16));
|
||||
|
||||
scanf("%c",&c);
|
||||
if ((c != 'y') || (c != 'Y')){
|
||||
scanf("%c",&ch);
|
||||
if ((ch != 'y') || (ch != 'Y')){
|
||||
PrintAndLog("Aborting !");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user