fixed 'hf mf' command and some others
This commit is contained in:
@@ -88,7 +88,7 @@ int CmdHelp(const char *Cmd)
|
|||||||
int CmdHFEPA(const char *Cmd)
|
int CmdHFEPA(const char *Cmd)
|
||||||
{
|
{
|
||||||
// flush
|
// flush
|
||||||
while (!WaitForResponseTimeout(CMD_ACK,NULL,500));
|
WaitForResponseTimeout(CMD_ACK,NULL,100);
|
||||||
|
|
||||||
// parse
|
// parse
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
|
|||||||
@@ -1676,7 +1676,7 @@ static command_t CommandTable[] =
|
|||||||
int CmdHFMF(const char *Cmd)
|
int CmdHFMF(const char *Cmd)
|
||||||
{
|
{
|
||||||
// flush
|
// flush
|
||||||
while (!WaitForResponseTimeout(CMD_ACK,NULL,500));
|
WaitForResponseTimeout(CMD_ACK,NULL,100);
|
||||||
|
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ int mfnested(uint8_t blockNo, uint8_t keyType, uint8_t * key, uint8_t trgBlockNo
|
|||||||
memset(resultKeys, 0x00, 16 * 6);
|
memset(resultKeys, 0x00, 16 * 6);
|
||||||
|
|
||||||
// flush queue
|
// flush queue
|
||||||
while (!WaitForResponseTimeout(CMD_ACK,NULL,500));
|
WaitForResponseTimeout(CMD_ACK,NULL,100);
|
||||||
|
|
||||||
UsbCommand c = {CMD_MIFARE_NESTED, {blockNo, keyType, trgBlockNo + trgKeyType * 0x100}};
|
UsbCommand c = {CMD_MIFARE_NESTED, {blockNo, keyType, trgBlockNo + trgKeyType * 0x100}};
|
||||||
memcpy(c.d.asBytes, key, 6);
|
memcpy(c.d.asBytes, key, 6);
|
||||||
|
|||||||
Reference in New Issue
Block a user