remove redundant removeSignalOffset

This commit is contained in:
Philippe Teuwen 2019-03-08 20:30:54 +01:00
parent 4160e32b0a
commit 1cba26decf
3 changed files with 2 additions and 9 deletions

View file

@ -1471,10 +1471,6 @@ int getSamples(int n, bool silent) {
uint8_t bits[GraphTraceLen];
size_t size = getFromGraphBuf(bits);
// TODO now DC removal is done already on device, right ?
// removeSignalOffset(bits, size);
// push it back to graph
// setGraphBuf(bits, size);
// set signal properties low/high/mean/amplitude and is_noise detection
computeSignalProperties(bits, size);

View file

@ -1000,8 +1000,6 @@ bool downloadSamplesEM(){
return false;
}
// TODO now DC removal is done already on device, right ?
// removeSignalOffset(got, sizeof(got));
setGraphBuf(got, sizeof(got));
// set signal properties low/high/mean/amplitude and is_noise detection
computeSignalProperties(got, sizeof(got));

View file

@ -1330,10 +1330,9 @@ bool AquireData( uint8_t page, uint8_t block, bool pwdmode, uint32_t password )
PrintAndLogEx(WARNING, "command execution time out");
return false;
}
// set signal properties low/high/mean/amplitude and is_noise detection
removeSignalOffset(got, sizeof(got));
computeSignalProperties(got, sizeof(got));
setGraphBuf(got, sizeof(got));
// set signal properties low/high/mean/amplitude and is_noise detection
computeSignalProperties(got, sizeof(got));
RepaintGraphWindow();
return !getSignalProperties()->isnoise;
}