X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/6067df30c59dc58dd4bb0bb922fd28087d3f58f9..56f1aaa234318f51b77cc4ce555bd7705056c882:/client/cmdlfawid.c diff --git a/client/cmdlfawid.c b/client/cmdlfawid.c index a304cf7b..2334e3e3 100644 --- a/client/cmdlfawid.c +++ b/client/cmdlfawid.c @@ -104,8 +104,9 @@ static bool sendTry(uint8_t fmtlen, uint32_t fc, uint32_t cn, uint32_t delay, ui static int sendPing(){ UsbCommand resp; UsbCommand ping = {CMD_PING}; - clearCommandBuffer(); - SendCommand(&ping); + clearCommandBuffer(); SendCommand(&ping); + clearCommandBuffer(); SendCommand(&ping); + clearCommandBuffer(); SendCommand(&ping); if (WaitForResponseTimeout(CMD_ACK, &resp, 1000)) { PrintAndLog("aborted via keyboard!"); return 0; @@ -374,7 +375,7 @@ int CmdAWIDBrute(const char *Cmd){ // Do one down (if cardnumber is given) if ( cn > 1 ) - if ( down > 0 ) + if ( down > 1 ) if ( !sendTry(fmtlen, fc, --down, delay, bs, size)) return 1; } return 0;