From c1e88f1a9b43b2009ed902a468eba3e7927d5fcd Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 4 Nov 2019 15:13:59 +0100 Subject: [PATCH] fix: cotag on device side... --- armsrc/lfsampling.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/armsrc/lfsampling.c b/armsrc/lfsampling.c index d168dcc78..48a3f0d97 100644 --- a/armsrc/lfsampling.c +++ b/armsrc/lfsampling.c @@ -374,8 +374,8 @@ void doT55x7Acquisition(size_t sample_size) { #define COTAG_T1 384 #define COTAG_T2 (COTAG_T1>>1) -#define COTAG_ONE_THRESHOLD 128+30 -#define COTAG_ZERO_THRESHOLD 128-30 +#define COTAG_ONE_THRESHOLD 128+10 +#define COTAG_ZERO_THRESHOLD 128-10 #ifndef COTAG_BITS #define COTAG_BITS 264 #endif @@ -437,6 +437,11 @@ void doCotagAcquisition(size_t sample_size) { dest[i] = dest[i - 1]; } } + + // Ensure that DC offset removal and noise check is performed for any device-side processing + removeSignalOffset(dest, bufsize); + computeSignalProperties(dest, bufsize); + } uint32_t doCotagAcquisitionManchester() {