fix: cotag use NG

This commit is contained in:
iceman1001 2019-11-04 15:42:28 +01:00
commit 68ac8dd979
2 changed files with 3 additions and 3 deletions

View file

@ -2490,7 +2490,7 @@ void Cotag(uint32_t arg0) {
switch (rawsignal) {
case 0:
doCotagAcquisition(50000);
doCotagAcquisition(40000);
break;
case 1:
doCotagAcquisitionManchester();
@ -2502,7 +2502,7 @@ void Cotag(uint32_t arg0) {
// Turn the field off
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF); // field off
reply_mix(CMD_ACK, 0, 0, 0, 0, 0);
reply_ng(CMD_LF_COTAG_READ, PM3_SUCCESS, NULL, 0);
LEDsoff();
}

View file

@ -86,7 +86,7 @@ static int CmdCOTAGRead(const char *Cmd) {
clearCommandBuffer();
SendCommandMIX(CMD_LF_COTAG_READ, rawsignal, 0, 0, NULL, 0);
if (!WaitForResponseTimeout(CMD_ACK, NULL, 7000)) {
if (!WaitForResponseTimeout(CMD_LF_COTAG_READ, NULL, 7000)) {
PrintAndLogEx(WARNING, "command execution time out");
return PM3_ETIMEOUT;
}