test: hitag to use decimation on sample to save space

This commit is contained in:
iceman1001 2020-01-22 13:13:04 +01:00
parent fc2e11a6cd
commit e0cd9c38da

View file

@ -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) {