add: potential fix for OSX uses, by @piwi

chg:  adapting fix to support iceman forks extended commands.
This commit is contained in:
iceman1001 2018-05-02 08:11:29 +02:00
commit 207fa2b574
39 changed files with 160 additions and 129 deletions

View file

@ -90,12 +90,12 @@ int CmdCOTAGRead(const char *Cmd) {
break;
}
case 1: {
GetFromBigBuf(DemodBuffer, COTAG_BITS, 0);
DemodBufferLen = COTAG_BITS;
if ( !WaitForResponseTimeout(CMD_ACK, NULL, 1000) ) {
if ( !GetFromBigBuf(DemodBuffer, COTAG_BITS, 0, NULL, 1000, false)) {
PrintAndLogEx(WARNING, "timeout while waiting for reply.");
return -1;
}
DemodBufferLen = COTAG_BITS;
return CmdCOTAGDemod("");
}
}