Major changes to hf mf mifare

This commit is contained in:
martin.holst@gmail.com 2013-06-26 21:13:02 +00:00
commit e772353f72
7 changed files with 365 additions and 99 deletions

View file

@ -28,7 +28,8 @@ int CmdHF14AMifare(const char *Cmd)
UsbCommand c = {CMD_READER_MIFARE, {(uint32_t)bytes_to_num(keyBlock, 4), 0, 0}};
start:
SendCommand(&c);
clearCommandBuffer();
SendCommand(&c);
//flush queue
while (ukbhit()) getchar();
@ -41,7 +42,7 @@ start:
// wait cycle
while (true) {
printf(".");
//printf(".");
fflush(stdout);
if (ukbhit()) {
getchar();