projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ADD: added @marshmellow42 's print statement for "lf viking clone".
[proxmark3-svn]
/
client
/
cmdhfdes.c
diff --git
a/client/cmdhfdes.c
b/client/cmdhfdes.c
index 1876e5c1a09ddf9dcc7b40ad124bc30c2870274b..200270f0d6e87e2beb679dddb5cfec3e4561ba7a 100644
(file)
--- a/
client/cmdhfdes.c
+++ b/
client/cmdhfdes.c
@@
-16,11
+16,13
@@
static int CmdHelp(const char *Cmd);
int CmdHFDESReader(const char *Cmd)
{
int CmdHFDESReader(const char *Cmd)
{
- UsbCommand c
={CMD_MIFARE_DES_READER, {3, 0x60, 0}
};
+ UsbCommand c
= { CMD_MIFARE_DES_READER, {3, 0x60, 0}
};
SendCommand(&c);
SendCommand(&c);
-
UsbCommand resp;
UsbCommand resp;
- WaitForResponseTimeout(CMD_ACK,&resp,2000);
+ if (!WaitForResponseTimeout(CMD_ACK,&resp,2000) ){
+ PrintAndLog("Command time-out");
+ return 1;
+ }
return 0;
}
return 0;
}
@@
-57,7
+59,8
@@
static command_t CommandTable[] =
int CmdHFDES(const char *Cmd)
{
//flush
int CmdHFDES(const char *Cmd)
{
//flush
- WaitForResponseTimeout(CMD_ACK,NULL,100);
+ clearCommandBuffer();
+ //WaitForResponseTimeout(CMD_ACK,NULL,100);
CmdsParse(CommandTable, Cmd);
return 0;
}
CmdsParse(CommandTable, Cmd);
return 0;
}
Impressum
,
Datenschutz