From 6f7d0dffdc9b81373c34dc946935523d8e5482da Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 2 May 2018 19:52:31 +0200 Subject: [PATCH] chg: unified download --- client/cmdhfmfu.c | 2 +- client/cmdlfcotag.c | 2 +- client/cmdlfem4x.c | 2 +- client/cmdlfhitag.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/cmdhfmfu.c b/client/cmdhfmfu.c index 450f3f12b..34063fc71 100644 --- a/client/cmdhfmfu.c +++ b/client/cmdhfmfu.c @@ -1782,7 +1782,7 @@ int CmdHF14AMfUDump(const char *Cmd){ bufferSize = sizeof(data); } - if ( !GetFromBigBuf(data, bufferSize, startindex, NULL, 2500, false) ) { + if ( !GetFromDevice(BIG_BUF, data, bufferSize, startindex, NULL, 2500, false) ) { PrintAndLogEx(WARNING, "command execution time out"); return 1; } diff --git a/client/cmdlfcotag.c b/client/cmdlfcotag.c index 51c85ab35..dce160192 100644 --- a/client/cmdlfcotag.c +++ b/client/cmdlfcotag.c @@ -91,7 +91,7 @@ int CmdCOTAGRead(const char *Cmd) { } case 1: { - if ( !GetFromBigBuf(DemodBuffer, COTAG_BITS, 0, NULL, 1000, false)) { + if ( !GetFromDevice(BIG_BUF, DemodBuffer, COTAG_BITS, 0, NULL, 1000, false)) { PrintAndLogEx(WARNING, "timeout while waiting for reply."); return -1; } diff --git a/client/cmdlfem4x.c b/client/cmdlfem4x.c index 5d4b36ca7..53d2647ea 100644 --- a/client/cmdlfem4x.c +++ b/client/cmdlfem4x.c @@ -995,7 +995,7 @@ bool downloadSamplesEM(){ // 8 bit preamble + 32 bit word response (max clock (128) * 40bits = 5120 samples) uint8_t got[6000]; - if ( !GetFromBigBuf(got, sizeof(got), 0, NULL, 2500, false)) { + if ( !GetFromDevice(BIG_BUF, got, sizeof(got), 0, NULL, 2500, false)) { PrintAndLogEx(WARNING, "command execution time out"); return false; } diff --git a/client/cmdlfhitag.c b/client/cmdlfhitag.c index eff4619da..cdd74a8bd 100644 --- a/client/cmdlfhitag.c +++ b/client/cmdlfhitag.c @@ -38,7 +38,7 @@ int CmdLFHitagList(const char *Cmd) { // Query for the actual size of the trace UsbCommand response; - if ( !GetFromBigBuf(got, USB_CMD_DATA_SIZE, 0, &response, 2500, false) ) { + if ( !GetFromDevice(BIG_BUF, got, USB_CMD_DATA_SIZE, 0, &response, 2500, false) ) { PrintAndLogEx(WARNING, "command execution time out"); free(got); return 2; @@ -53,7 +53,7 @@ int CmdLFHitagList(const char *Cmd) { return 2; } got = p; - if ( !GetFromBigBuf(got, traceLen, 0, NULL, 2500, false) ) { + if ( !GetFromDevice(BIG_BUF, got, traceLen, 0, NULL, 2500, false) ) { PrintAndLogEx(WARNING, "command execution time out"); free(got); return 2;