Viva la revolucion
This commit is contained in:
1 parent
8bfc5c1b47
commit
be15ad7fec
53 files changed
+861
-870
No files matched your search
+2
-2
@@ -672,13 +672,13 @@ int CmdTraceList(const char *Cmd) {
|
||||
|
||||
if (isOnline) {
|
||||
// Query for the size of the trace, downloading USB_CMD_DATA_SIZE
|
||||
UsbCommand response;
|
||||
UsbReplyNG response;
|
||||
if (!GetFromDevice(BIG_BUF, trace, USB_CMD_DATA_SIZE, 0, &response, 4000, true)) {
|
||||
PrintAndLogEx(WARNING, "timeout while waiting for reply.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
traceLen = response.arg[2];
|
||||
traceLen = response.core.old.arg[2];
|
||||
if (traceLen > USB_CMD_DATA_SIZE) {
|
||||
uint8_t *p = realloc(trace, traceLen);
|
||||
if (p == NULL) {
|
||||
|
||||
Reference in new issue
Block a user