Viva la revolucion
This commit is contained in:
@@ -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