X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/d9de20fa4bb0a36052927b55c4185caa204c5c4d..1523527f94c4c294d0c04d0fd3396ce7eda095e4:/armsrc/iso15693.c diff --git a/armsrc/iso15693.c b/armsrc/iso15693.c index f6868297..d988e2b9 100644 --- a/armsrc/iso15693.c +++ b/armsrc/iso15693.c @@ -60,6 +60,7 @@ #include "protocols.h" #include "cmd.h" #include "BigBuf.h" +#include "fpgaloader.h" #define arraylen(x) (sizeof(x)/sizeof((x)[0])) @@ -339,7 +340,7 @@ static void TransmitTo15693Reader(const uint8_t *cmd, size_t len, uint32_t start // false if we are still waiting for some more //============================================================================= -#define NOISE_THRESHOLD 30 // don't try to correlate noise +#define NOISE_THRESHOLD 160 // don't try to correlate noise typedef struct DecodeTag { enum { @@ -1039,6 +1040,7 @@ void AcquireRawAdcSamplesIso15693(void) void SnoopIso15693(void) { + LED_A_ON(); FpgaDownloadAndGo(FPGA_BITSTREAM_HF); BigBuf_free(); @@ -1072,9 +1074,6 @@ void SnoopIso15693(void) } Dbprintf("Snoop started. Press button to stop."); - // Signal field is off, no reader signal, no tag signal - LEDsoff(); - // And put the FPGA in the appropriate mode FpgaWriteConfWord(FPGA_MAJOR_MODE_HF_READER_RX_XCORR | FPGA_HF_READER_RX_XCORR_SNOOP | FPGA_HF_READER_RX_XCORR_AMPLITUDE); SetAdcMuxFor(GPIO_MUXSEL_HIPKD);