fix: assume graphbuffer data only

This commit is contained in:
iceman1001 2017-11-06 15:45:23 +01:00
parent dd0b11c0ef
commit 3b91a33eec

View file

@ -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();