mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 06:13:27 -07:00
fixed showing error
This commit is contained in:
parent
9a97a1af2b
commit
be34bb6fa4
1 changed files with 5 additions and 5 deletions
|
@ -750,6 +750,11 @@ int ExchangeRAW14a(uint8_t *datain, int datainlen, bool activateField, bool leav
|
||||||
recv = resp.d.asBytes;
|
recv = resp.d.asBytes;
|
||||||
int iLen = resp.arg[0];
|
int iLen = resp.arg[0];
|
||||||
|
|
||||||
|
if(!iLen) {
|
||||||
|
PrintAndLog("14aRAW ERROR: No card response.");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
*dataoutlen = iLen - 2;
|
*dataoutlen = iLen - 2;
|
||||||
if (*dataoutlen < 0)
|
if (*dataoutlen < 0)
|
||||||
*dataoutlen = 0;
|
*dataoutlen = 0;
|
||||||
|
@ -766,11 +771,6 @@ int ExchangeRAW14a(uint8_t *datain, int datainlen, bool activateField, bool leav
|
||||||
|
|
||||||
memcpy(dataout, &recv[2], *dataoutlen);
|
memcpy(dataout, &recv[2], *dataoutlen);
|
||||||
|
|
||||||
if(!iLen) {
|
|
||||||
PrintAndLog("14aRAW ERROR: No card response.");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// CRC Check
|
// CRC Check
|
||||||
if (iLen == -1) {
|
if (iLen == -1) {
|
||||||
PrintAndLog("14aRAW ERROR: ISO 14443A CRC error.");
|
PrintAndLog("14aRAW ERROR: ISO 14443A CRC error.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue