mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-07 16:48:15 +08:00
fix: lf config set decimate or divisor to 8 is now possible
This commit is contained in:
parent
f9c2f35c8b
commit
e3aa035be7
1 changed files with 2 additions and 2 deletions
|
@ -73,11 +73,11 @@ void printSamples(void) {
|
||||||
void setSamplingConfig(sample_config *sc) {
|
void setSamplingConfig(sample_config *sc) {
|
||||||
|
|
||||||
// decimation (1-8) how many bits of adc sample value to save
|
// decimation (1-8) how many bits of adc sample value to save
|
||||||
if (sc->decimation > 0 && sc->decimation < 8)
|
if (sc->decimation > 0 && sc->decimation < 9)
|
||||||
config.decimation = sc->decimation;
|
config.decimation = sc->decimation;
|
||||||
|
|
||||||
// bits per sample (1-8)
|
// bits per sample (1-8)
|
||||||
if (sc->bits_per_sample > 0 && sc->bits_per_sample < 8)
|
if (sc->bits_per_sample > 0 && sc->bits_per_sample < 9)
|
||||||
config.bits_per_sample = sc->bits_per_sample;
|
config.bits_per_sample = sc->bits_per_sample;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue