mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
fix: cotag use NG
This commit is contained in:
parent
c1e88f1a9b
commit
68ac8dd979
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue