mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
fix handling of trace list -1 with empty trace buffer
This commit is contained in:
parent
979cdc4656
commit
4c228b6c64
1 changed files with 4 additions and 1 deletions
|
@ -678,8 +678,11 @@ int CmdTraceList(const char *Cmd) {
|
||||||
else if (strcmp(type, "cryptorf") == 0) protocol = PROTO_CRYPTORF;
|
else if (strcmp(type, "cryptorf") == 0) protocol = PROTO_CRYPTORF;
|
||||||
else if (strcmp(type, "raw") == 0) protocol = -1;
|
else if (strcmp(type, "raw") == 0) protocol = -1;
|
||||||
|
|
||||||
if (use_buffer == false || (g_traceLen == 0)) {
|
if (use_buffer == false) {
|
||||||
download_trace();
|
download_trace();
|
||||||
|
} else if (g_traceLen == 0) {
|
||||||
|
PrintAndLogEx(FAILED, "You requested a trace list in offline mode but there is no trace, consider using 'trace load' or removing parameter '1'");
|
||||||
|
return PM3_EINVARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintAndLogEx(SUCCESS, "Recorded activity (trace len = " _YELLOW_("%lu") " bytes)", g_traceLen);
|
PrintAndLogEx(SUCCESS, "Recorded activity (trace len = " _YELLOW_("%lu") " bytes)", g_traceLen);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue