fixed 'hf mf' command and some others

This commit is contained in:
roel@libnfc.org 2012-12-07 22:37:22 +00:00
commit 7dd1908b24
3 changed files with 3 additions and 3 deletions

View file

@ -88,7 +88,7 @@ int CmdHelp(const char *Cmd)
int CmdHFEPA(const char *Cmd)
{
// flush
while (!WaitForResponseTimeout(CMD_ACK,NULL,500));
WaitForResponseTimeout(CMD_ACK,NULL,100);
// parse
CmdsParse(CommandTable, Cmd);

View file

@ -1676,7 +1676,7 @@ static command_t CommandTable[] =
int CmdHFMF(const char *Cmd)
{
// flush
while (!WaitForResponseTimeout(CMD_ACK,NULL,500));
WaitForResponseTimeout(CMD_ACK,NULL,100);
CmdsParse(CommandTable, Cmd);
return 0;

View file

@ -65,7 +65,7 @@ int mfnested(uint8_t blockNo, uint8_t keyType, uint8_t * key, uint8_t trgBlockNo
memset(resultKeys, 0x00, 16 * 6);
// flush queue
while (!WaitForResponseTimeout(CMD_ACK,NULL,500));
WaitForResponseTimeout(CMD_ACK,NULL,100);
UsbCommand c = {CMD_MIFARE_NESTED, {blockNo, keyType, trgBlockNo + trgKeyType * 0x100}};
memcpy(c.d.asBytes, key, 6);