X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/76471e5d1734786f6095c0b689fa49c5f6e92136..a5d824656811693c9f31cf41766e419b2dd799f9:/client/cmdhflegic.c diff --git a/client/cmdhflegic.c b/client/cmdhflegic.c index c9b10eaf..31d59005 100644 --- a/client/cmdhflegic.c +++ b/client/cmdhflegic.c @@ -415,22 +415,18 @@ int CmdLegicRFRead(const char *Cmd) { clearCommandBuffer(); SendCommand(&c); UsbCommand resp; - if (WaitForResponseTimeout(CMD_ACK, &resp, 1500)) { + if (WaitForResponseTimeout(CMD_ACK, &resp, 2000)) { uint8_t isOK = resp.arg[0] & 0xFF; uint16_t len = resp.arg[1] & 0x3FF; if ( isOK ) { - PrintAndLog("OK : %d", isOK); PrintAndLog("use 'hf legic decode' or"); PrintAndLog("'data hexsamples %d' to view results", len); + } } else { PrintAndLog("command execution time out"); return 1; } - - //uint8_t got[12000]; - //GetFromBigBuf(got,sizeof(got),0); - //WaitForResponse(CMD_ACK,NULL); return 0; }