mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
chg: 'hf legic dump' - longer timeout
This commit is contained in:
parent
8ee857e4ba
commit
601cb0fe00
1 changed files with 11 additions and 4 deletions
|
@ -899,10 +899,17 @@ int CmdLegicDump(const char *Cmd){
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
SendCommand(&c);
|
SendCommand(&c);
|
||||||
UsbCommand resp;
|
UsbCommand resp;
|
||||||
if (!WaitForResponseTimeout(CMD_ACK, &resp, 3000)) {
|
|
||||||
PrintAndLogEx(WARNING, "Command execute time-out");
|
uint8_t timeout = 0;
|
||||||
return 1;
|
while (!WaitForResponseTimeout(CMD_ACK, &resp, 2000)) {
|
||||||
}
|
++timeout;
|
||||||
|
printf("."); fflush(stdout);
|
||||||
|
if (timeout > 7) {
|
||||||
|
PrintAndLogEx(WARNING, "\ncommand execution time out");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
PrintAndLogEx(NORMAL, "\n");
|
||||||
|
|
||||||
uint8_t isOK = resp.arg[0] & 0xFF;
|
uint8_t isOK = resp.arg[0] & 0xFF;
|
||||||
if ( !isOK ) {
|
if ( !isOK ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue