mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-22 15:16:19 +08:00
CHG: minor fixes in setting arrays and error messages.
This commit is contained in:
parent
5f5b83b743
commit
96b516e180
1 changed files with 4 additions and 4 deletions
|
@ -59,18 +59,18 @@ int CmdCOTAGRead(const char *Cmd) {
|
||||||
GetFromBigBuf(bits, sizeof(bits), 0);
|
GetFromBigBuf(bits, sizeof(bits), 0);
|
||||||
UsbCommand response;
|
UsbCommand response;
|
||||||
if ( !WaitForResponseTimeout(CMD_ACK, &response, 500) ) {
|
if ( !WaitForResponseTimeout(CMD_ACK, &response, 500) ) {
|
||||||
PrintAndLog("timeout while waiting for reply.");
|
if (g_debugMode) PrintAndLog("timeout while waiting for reply.");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t size = sizeof(bits);
|
size_t size = sizeof(bits);
|
||||||
int err = manrawdecode(bits, &size, 1);
|
int err = manrawdecode(bits, &size, 1);
|
||||||
if (err){
|
if (err){
|
||||||
PrintAndLog("DEBUG: Error - COTAG too many errors: %d", err);
|
if (g_debugMode) PrintAndLog("DEBUG: Error - COTAG too many errors: %d", err);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
PrintAndLog("%s", sprint_bin(bits, size));
|
PrintAndLog("%s", sprint_bin(bits, size));
|
||||||
setDemodBuf(bits, sizeof(bits), 0);
|
setDemodBuf(bits, size, 0);
|
||||||
|
|
||||||
// CmdCOTAGDemod();
|
// CmdCOTAGDemod();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue