mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-09-20 23:36:31 +08:00
test: hitag to use decimation on sample to save space
This commit is contained in:
parent
fc2e11a6cd
commit
e0cd9c38da
|
@ -188,6 +188,9 @@ void lf_init(bool reader) {
|
|||
|
||||
if (logging) initSampleBuffer(&bufsize);
|
||||
|
||||
sample_config *sc = getSamplingConfig();
|
||||
sc->decimation = 2;
|
||||
sc->averaging = 1;
|
||||
}
|
||||
|
||||
void lf_finalize() {
|
||||
|
@ -202,6 +205,10 @@ void lf_finalize() {
|
|||
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
|
||||
|
||||
LEDsoff();
|
||||
|
||||
sample_config *sc = getSamplingConfig();
|
||||
sc->decimation = 1;
|
||||
sc->averaging = 0;
|
||||
}
|
||||
|
||||
size_t lf_detect_field_drop(size_t max) {
|
||||
|
|
Loading…
Reference in a new issue