From e3aa035be724d9c3a846944e29268221c3576b2f Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 3 Feb 2021 16:00:33 +0100 Subject: [PATCH] fix: lf config set decimate or divisor to 8 is now possible --- armsrc/lfsampling.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/armsrc/lfsampling.c b/armsrc/lfsampling.c index ef1d128cc..f45fe8920 100644 --- a/armsrc/lfsampling.c +++ b/armsrc/lfsampling.c @@ -73,11 +73,11 @@ void printSamples(void) { void setSamplingConfig(sample_config *sc) { // 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; // 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; //