From 6792435739c20c270ca3cc4259e5427783ae5fe1 Mon Sep 17 00:00:00 2001 From: pwpiwi Date: Fri, 3 Apr 2020 17:41:11 +0200 Subject: [PATCH 1/1] fixing iso15693 * NOISE_THRESHOLD /= 2 (starting with c41dd5f it became a relative threshold) * remove superfluous reader initialization --- armsrc/iso15693.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/armsrc/iso15693.c b/armsrc/iso15693.c index 5672e66d..f16698bb 100644 --- a/armsrc/iso15693.c +++ b/armsrc/iso15693.c @@ -368,7 +368,7 @@ void TransmitTo15693Reader(const uint8_t *cmd, size_t len, uint32_t *start_time, // false if we are still waiting for some more //============================================================================= -#define NOISE_THRESHOLD 160 // don't try to correlate noise +#define NOISE_THRESHOLD 80 // don't try to correlate noise #define MAX_PREVIOUS_AMPLITUDE (-1 - NOISE_THRESHOLD) typedef struct DecodeTag { @@ -1571,9 +1571,6 @@ void ReaderIso15693(uint32_t parameter) { LED_A_ON(); - Iso15693InitReader(); - - StartCountSspClk(); set_tracing(true); uint8_t TagUID[8] = {0x00}; -- 2.39.5