chg: unified download

This commit is contained in:
iceman1001 2018-05-02 19:51:10 +02:00
commit baf6beec2e
3 changed files with 6 additions and 6 deletions

View file

@ -805,7 +805,7 @@ int CmdBitsamples(const char *Cmd)
int cnt = 0;
uint8_t got[12288];
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;
}
@ -1337,7 +1337,7 @@ int CmdHexsamples(const char *Cmd)
return 0;
}
if ( !GetFromBigBuf(got, requested, offset, NULL, 2500, false)) {
if ( !GetFromDevice(BIG_BUF, got, requested, offset, NULL, 2500, false)) {
PrintAndLogEx(WARNING, "command execution time out");
return false;
}
@ -1416,7 +1416,7 @@ int getSamples(int n, bool silent) {
if (!silent) PrintAndLogEx(NORMAL, "Reading %d bytes from device memory\n", n);
UsbCommand response;
if ( !GetFromBigBuf(got, n, 0, &response, 10000, true) ) {
if ( !GetFromDevice(BIG_BUF, got, n, 0, &response, 10000, true) ) {
PrintAndLogEx(WARNING, "timeout while waiting for reply.");
return 1;
}

View file

@ -391,7 +391,7 @@ int CmdHFFelicaDumpLite(const char *Cmd) {
// only download data if there is any.
if ( tracelen > 0 ) {
if ( !GetFromBigBuf(trace, tracelen, 0, NULL, 2500, false) ){
if ( !GetFromDevice(BIG_BUF, trace, tracelen, 0, NULL, 2500, false) ){
PrintAndLogEx(WARNING, "command execution time out");
free(trace);
return 0;

View file

@ -1066,7 +1066,7 @@ int CmdHFiClassReader_Dump(const char *Cmd) {
}
// response ok - now get bigbuf content of the dump
if ( !GetFromBigBuf(tag_data+(blockno*8), blocksRead*8, startindex, NULL, 2500, false) ) {
if ( !GetFromDevice(BIG_BUF, tag_data+(blockno*8), blocksRead*8, startindex, NULL, 2500, false) ) {
PrintAndLogEx(WARNING, "command execution time out");
return 0;
}
@ -1111,7 +1111,7 @@ int CmdHFiClassReader_Dump(const char *Cmd) {
blocksRead = (sizeof(tag_data) - gotBytes)/8;
}
// get dumped data from bigbuf
if ( !GetFromBigBuf(tag_data + gotBytes, blocksRead * 8, startindex, NULL, 2500, false)) {
if ( !GetFromDevice(BIG_BUF, tag_data + gotBytes, blocksRead * 8, startindex, NULL, 2500, false)) {
PrintAndLogEx(WARNING, "command execution time out");
return 0;
}