fix: assume graphbuffer data only
This commit is contained in:
@@ -1318,7 +1318,7 @@ int getSamples(int n, bool silent) {
|
|||||||
n = sizeof(got);
|
n = sizeof(got);
|
||||||
|
|
||||||
if (!silent) PrintAndLog("Reading %d bytes from device memory\n", n);
|
if (!silent) PrintAndLog("Reading %d bytes from device memory\n", n);
|
||||||
GetFromBigBuf(got,n,0);
|
GetFromBigBuf(got, n, 0);
|
||||||
|
|
||||||
if (!silent) PrintAndLog("Data fetched");
|
if (!silent) PrintAndLog("Data fetched");
|
||||||
|
|
||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user