Major changes to hf mf mifare

This commit is contained in:
martin.holst@gmail.com committed 2013-06-26 21:13:02 +00:00
1 parent 1bad971361
commit e772353f72
7 files changed
+365 -99

No files matched your search

+3 -2
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();