FILE *fdump;\r
FILE *fkeys;\r
\r
- char ch;\r
- \r
if ((fdump = fopen("dumpdata.bin","rb")) == NULL) {\r
PrintAndLog("Could not find file dump.bin");\r
return 1;\r
bldata[15] = (keyB[i][5]);\r
} \r
\r
+ PrintAndLog("Writing to block %2d: %s", i*4+j, sprint_hex(bldata, 16));\r
+ \r
+ /*\r
PrintAndLog("Writing to block %2d: %s Confirm? [Y,N]", i*4+j, sprint_hex(bldata, 16));\r
\r
scanf("%c",&ch);\r
- if ((ch != 'y') || (ch != 'Y')){\r
+ if ((ch != 'y') && (ch != 'Y')){\r
PrintAndLog("Aborting !");\r
return 1;\r
}\r
+ */\r
\r
memcpy(c.d.asBytes + 10, bldata, 16);\r
SendCommand(&c);\r