From 33f9af961980206fa07ad13cd795284479f54903 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 12 Mar 2019 20:50:44 +0100 Subject: [PATCH] chg 'data AutoCorrelate' - adjust the manual limit to 4% --- client/cmddata.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/cmddata.c b/client/cmddata.c index 117a1a495..0df6268dd 100644 --- a/client/cmddata.c +++ b/client/cmddata.c @@ -770,10 +770,11 @@ int AutoCorrelate(const int *in, int *out, size_t len, int window, bool SaveGrph } int foo = ABS(hi - hi_1); - int bar = (int)((int)((hi + hi_1) / 2) * 0.03); + int bar = (int)((int)((hi + hi_1) / 2) * 0.04); + if (verbose && foo < bar) { distance = idx_1 - idx; - PrintAndLogEx(SUCCESS, "possible 3% visible correlation %4d samples", distance); + PrintAndLogEx(SUCCESS, "possible 4% visible correlation %4d samples", distance); } else if (verbose && (correlation > 1)) { PrintAndLogEx(SUCCESS, "possible correlation %4d samples", correlation); } else {