fix: assume graphbuffer data only

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

View file

@ -1328,9 +1328,6 @@ int getSamples(int n, bool silent) {
return 1; return 1;
} }
// set signal properties low/high/mean/amplitude and isnoice detection
justNoise(got, n);
uint8_t bits_per_sample = 8; uint8_t bits_per_sample = 8;
//Old devices without this feature would send 0 at arg[0] //Old devices without this feature would send 0 at arg[0]
@ -1357,6 +1354,9 @@ int getSamples(int n, bool silent) {
GraphTraceLen = n; GraphTraceLen = n;
} }
// set signal properties low/high/mean/amplitude and isnoice detection
justNoise_int(GraphBuffer, GraphTraceLen);
setClockGrid(0, 0); setClockGrid(0, 0);
DemodBufferLen = 0; DemodBufferLen = 0;
RepaintGraphWindow(); RepaintGraphWindow();