From 3b91a33eecebb60bc65bdd6a47c18d7bbc732c4f Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 6 Nov 2017 15:45:23 +0100 Subject: [PATCH] fix: assume graphbuffer data only --- client/cmddata.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/cmddata.c b/client/cmddata.c index 03dab9415..19aaf212e 100644 --- a/client/cmddata.c +++ b/client/cmddata.c @@ -1318,7 +1318,7 @@ int getSamples(int n, bool silent) { n = sizeof(got); if (!silent) PrintAndLog("Reading %d bytes from device memory\n", n); - GetFromBigBuf(got,n,0); + GetFromBigBuf(got, n, 0); if (!silent) PrintAndLog("Data fetched"); @@ -1328,9 +1328,6 @@ int getSamples(int n, bool silent) { return 1; } - // set signal properties low/high/mean/amplitude and isnoice detection - justNoise(got, n); - uint8_t bits_per_sample = 8; //Old devices without this feature would send 0 at arg[0] @@ -1357,6 +1354,9 @@ int getSamples(int n, bool silent) { GraphTraceLen = n; } + // set signal properties low/high/mean/amplitude and isnoice detection + justNoise_int(GraphBuffer, GraphTraceLen); + setClockGrid(0, 0); DemodBufferLen = 0; RepaintGraphWindow();