mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-14 03:03:14 +08:00
chg: 'hf iclass reader - getfrombigbuf has now timeout
This commit is contained in:
parent
cc0fac016b
commit
9577dad1aa
1 changed files with 9 additions and 2 deletions
|
@ -1067,7 +1067,11 @@ int CmdHFiClassReader_Dump(const char *Cmd) {
|
||||||
|
|
||||||
// response ok - now get bigbuf content of the dump
|
// response ok - now get bigbuf content of the dump
|
||||||
GetFromBigBuf(tag_data+(blockno*8), blocksRead*8, startindex);
|
GetFromBigBuf(tag_data+(blockno*8), blocksRead*8, startindex);
|
||||||
WaitForResponse(CMD_ACK, NULL);
|
if ( !WaitForResponseTimeout(CMD_ACK, NULL, 2500) ) {
|
||||||
|
PrintAndLogEx(WARNING, "command execution time out");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
size_t gotBytes = blocksRead*8 + blockno*8;
|
size_t gotBytes = blocksRead*8 + blockno*8;
|
||||||
|
|
||||||
// try AA2
|
// try AA2
|
||||||
|
@ -1109,7 +1113,10 @@ int CmdHFiClassReader_Dump(const char *Cmd) {
|
||||||
}
|
}
|
||||||
// get dumped data from bigbuf
|
// get dumped data from bigbuf
|
||||||
GetFromBigBuf(tag_data + gotBytes, blocksRead * 8, startindex);
|
GetFromBigBuf(tag_data + gotBytes, blocksRead * 8, startindex);
|
||||||
WaitForResponse(CMD_ACK, NULL);
|
if ( !WaitForResponseTimeout(CMD_ACK, NULL, 2500) ) {
|
||||||
|
PrintAndLogEx(WARNING, "command execution time out");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
gotBytes += blocksRead * 8;
|
gotBytes += blocksRead * 8;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue