From: frederikmoellers@aol.de Date: Sat, 1 Sep 2012 23:54:38 +0000 (+0000) Subject: Power down the field before sending the USB ACK X-Git-Tag: v1.0.0~147 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/e5ad43c07eecd24792f0ca3f3468b10f447fafb3?ds=inline Power down the field before sending the USB ACK This fixes the bug that the USB communication breaks when collecting PACE nonces with no delay. The delay functionality has not been removed (it doesn't hurt to keep it), but using a delay of 0 is now possible without a high risk of getting too many errors. --- diff --git a/armsrc/epa.c b/armsrc/epa.c index 8ab4311c..0e93a056 100644 --- a/armsrc/epa.c +++ b/armsrc/epa.c @@ -217,12 +217,12 @@ static void EPA_PACE_Collect_Nonce_Abort(UsbCommand *ack, uint8_t step, int func ack->arg[0] = step; // last return code ack->arg[1] = func_return; - - // send the USB packet - UsbSendPacket((void *)ack, sizeof(UsbCommand)); // power down the field EPA_Finish(); + + // send the USB packet + UsbSendPacket((void *)ack, sizeof(UsbCommand)); } //-----------------------------------------------------------------------------