fixed iso14443b snoop, plus compiling issue of redefined parameter, please take care about this next time before a commit

This commit is contained in:
roel@libnfc.org 2011-09-06 10:28:22 +00:00
commit 0f7f9edc14
3 changed files with 17 additions and 24 deletions

View file

@ -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;
}