mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-18 19:13:41 +08:00
chg: 'trace list' - getfrombigbuf has now timeout
This commit is contained in:
parent
fec833de03
commit
a42580317c
1 changed files with 6 additions and 2 deletions
|
@ -485,7 +485,7 @@ int CmdTraceList(const char *Cmd) {
|
|||
}
|
||||
|
||||
if ( isOnline ) {
|
||||
// Query for the size of the trace
|
||||
// Query for the size of the trace, downloading USB_CMD_DATA_SIZE
|
||||
UsbCommand response;
|
||||
GetFromBigBuf(trace, USB_CMD_DATA_SIZE, 0);
|
||||
if ( !WaitForResponseTimeout(CMD_ACK, &response, 4000) ) {
|
||||
|
@ -503,7 +503,11 @@ int CmdTraceList(const char *Cmd) {
|
|||
}
|
||||
trace = p;
|
||||
GetFromBigBuf(trace, traceLen, 0);
|
||||
WaitForResponse(CMD_ACK, NULL);
|
||||
if ( !WaitForResponseTimeout(CMD_ACK, NULL, 2500) ) {
|
||||
PrintAndLogEx(WARNING, "command execution time out");
|
||||
free(trace);
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue