lesser time 6 -> 3 sec wait

This commit is contained in:
iceman1001 2020-12-02 17:14:27 +01:00
parent 54e7f8d438
commit 1a2b89d92f

View file

@ -123,14 +123,13 @@ static int CmdCOTAGReader(const char *Cmd) {
uint8_t timeout = 3; uint8_t timeout = 3;
int res = PM3_SUCCESS; int res = PM3_SUCCESS;
while (!WaitForResponseTimeout(CMD_LF_COTAG_READ, &resp, 2000)) { while (!WaitForResponseTimeout(CMD_LF_COTAG_READ, &resp, 1000)) {
timeout--; timeout--;
PrintAndLogEx(NORMAL, "." NOLF); PrintAndLogEx(NORMAL, "." NOLF);
if (timeout == 0) { if (timeout == 0) {
PrintAndLogEx(NORMAL, ""); PrintAndLogEx(NORMAL, "");
PrintAndLogEx(WARNING, "command execution time out"); PrintAndLogEx(WARNING, "command execution time out");
SendCommandNG(CMD_BREAK_LOOP, NULL, 0); SendCommandNG(CMD_BREAK_LOOP, NULL, 0);
timeout = 1;
res = PM3_ETIMEOUT; res = PM3_ETIMEOUT;
} }
} }