mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
chg: unified download
This commit is contained in:
parent
baf6beec2e
commit
6f7d0dffdc
4 changed files with 5 additions and 5 deletions
|
@ -1782,7 +1782,7 @@ int CmdHF14AMfUDump(const char *Cmd){
|
||||||
bufferSize = sizeof(data);
|
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");
|
PrintAndLogEx(WARNING, "command execution time out");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ int CmdCOTAGRead(const char *Cmd) {
|
||||||
}
|
}
|
||||||
case 1: {
|
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.");
|
PrintAndLogEx(WARNING, "timeout while waiting for reply.");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -995,7 +995,7 @@ bool downloadSamplesEM(){
|
||||||
|
|
||||||
// 8 bit preamble + 32 bit word response (max clock (128) * 40bits = 5120 samples)
|
// 8 bit preamble + 32 bit word response (max clock (128) * 40bits = 5120 samples)
|
||||||
uint8_t got[6000];
|
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");
|
PrintAndLogEx(WARNING, "command execution time out");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ int CmdLFHitagList(const char *Cmd) {
|
||||||
|
|
||||||
// Query for the actual size of the trace
|
// Query for the actual size of the trace
|
||||||
UsbCommand response;
|
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");
|
PrintAndLogEx(WARNING, "command execution time out");
|
||||||
free(got);
|
free(got);
|
||||||
return 2;
|
return 2;
|
||||||
|
@ -53,7 +53,7 @@ int CmdLFHitagList(const char *Cmd) {
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
got = p;
|
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");
|
PrintAndLogEx(WARNING, "command execution time out");
|
||||||
free(got);
|
free(got);
|
||||||
return 2;
|
return 2;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue