X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/49b35ff9c21e9deefb10303effe65be575c65957..e30c654b196a87a13ae7f7d4ced930b296c038ec:/armsrc/iso14443.c diff --git a/armsrc/iso14443.c b/armsrc/iso14443.c index 1543efc9..4ec3f0aa 100644 --- a/armsrc/iso14443.c +++ b/armsrc/iso14443.c @@ -4,7 +4,7 @@ // supported. // Jonathan Westhues, split Nov 2006 //----------------------------------------------------------------------------- -#include +#include "proxmark3.h" #include "apps.h" #include "iso14443crc.h" @@ -1070,11 +1070,11 @@ void SnoopIso14443(void) Dbprintf(" Reader -> tag: %i bytes", READER_TAG_BUFFER_SIZE); Dbprintf(" tag -> Reader: %i bytes", TAG_READER_BUFFER_SIZE); Dbprintf(" DMA: %i bytes", DMA_BUFFER_SIZE); - + // Use a counter for blinking the LED long ledCount=0; long ledFlashAt=200000; - + // And put the FPGA in the appropriate mode // Signal field is off with the appropriate LED LED_D_OFF(); @@ -1099,7 +1099,7 @@ void SnoopIso14443(void) LED_D_OFF(); ledCount=0; } - + int behindBy = (lastRxCounter - AT91C_BASE_PDC_SSC->PDC_RCR) & (DMA_BUFFER_SIZE-1); if(behindBy > maxBehindBy) { @@ -1176,7 +1176,7 @@ void SnoopIso14443(void) trace[traceLen++] = Demod.len; memcpy(trace+traceLen, receivedResponse, Demod.len); traceLen += Demod.len; - if(traceLen > DEMOD_TRACE_SIZE) { + if(traceLen > DEMOD_TRACE_SIZE) { DbpString("Reached trace limit"); goto done; }