From 68ac8dd979b871697e58e13843aace3d2d4880be Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 4 Nov 2019 15:42:28 +0100 Subject: [PATCH] fix: cotag use NG --- armsrc/lfops.c | 4 ++-- client/cmdlfcotag.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/armsrc/lfops.c b/armsrc/lfops.c index b929f10a4..b5e9b98ec 100644 --- a/armsrc/lfops.c +++ b/armsrc/lfops.c @@ -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(); } diff --git a/client/cmdlfcotag.c b/client/cmdlfcotag.c index b4e8e96c8..9c55bf453 100644 --- a/client/cmdlfcotag.c +++ b/client/cmdlfcotag.c @@ -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; }