mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
remove redundant removeSignalOffset
This commit is contained in:
parent
4160e32b0a
commit
1cba26decf
3 changed files with 2 additions and 9 deletions
|
@ -1471,10 +1471,6 @@ int getSamples(int n, bool silent) {
|
||||||
|
|
||||||
uint8_t bits[GraphTraceLen];
|
uint8_t bits[GraphTraceLen];
|
||||||
size_t size = getFromGraphBuf(bits);
|
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
|
// set signal properties low/high/mean/amplitude and is_noise detection
|
||||||
computeSignalProperties(bits, size);
|
computeSignalProperties(bits, size);
|
||||||
|
|
||||||
|
|
|
@ -1000,8 +1000,6 @@ bool downloadSamplesEM(){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO now DC removal is done already on device, right ?
|
|
||||||
// removeSignalOffset(got, sizeof(got));
|
|
||||||
setGraphBuf(got, sizeof(got));
|
setGraphBuf(got, sizeof(got));
|
||||||
// set signal properties low/high/mean/amplitude and is_noise detection
|
// set signal properties low/high/mean/amplitude and is_noise detection
|
||||||
computeSignalProperties(got, sizeof(got));
|
computeSignalProperties(got, sizeof(got));
|
||||||
|
|
|
@ -1330,10 +1330,9 @@ bool AquireData( uint8_t page, uint8_t block, bool pwdmode, uint32_t password )
|
||||||
PrintAndLogEx(WARNING, "command execution time out");
|
PrintAndLogEx(WARNING, "command execution time out");
|
||||||
return false;
|
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));
|
setGraphBuf(got, sizeof(got));
|
||||||
|
// set signal properties low/high/mean/amplitude and is_noise detection
|
||||||
|
computeSignalProperties(got, sizeof(got));
|
||||||
RepaintGraphWindow();
|
RepaintGraphWindow();
|
||||||
return !getSignalProperties()->isnoise;
|
return !getSignalProperties()->isnoise;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue