From 9974991e4baa2be529f311e0bec7e38e6212f3e7 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 19 Jan 2016 16:31:38 +0100 Subject: [PATCH] CHG: Syntax suger --- armsrc/lfsampling.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/armsrc/lfsampling.c b/armsrc/lfsampling.c index 7d55fa3c..3a502eb6 100644 --- a/armsrc/lfsampling.c +++ b/armsrc/lfsampling.c @@ -40,11 +40,11 @@ void printConfig() void setSamplingConfig(sample_config *sc) { if(sc->divisor != 0) config.divisor = sc->divisor; - if(sc->bits_per_sample!= 0) config.bits_per_sample= sc->bits_per_sample; - if(sc->decimation!= 0) config.decimation= sc->decimation; - if(sc->trigger_threshold != -1) config.trigger_threshold= sc->trigger_threshold; + if(sc->bits_per_sample != 0) config.bits_per_sample = sc->bits_per_sample; + if(sc->decimation != 0) config.decimation = sc->decimation; + if(sc->trigger_threshold != -1) config.trigger_threshold = sc->trigger_threshold; - config.averaging= sc->averaging; + config.averaging = sc->averaging; if(config.bits_per_sample > 8) config.bits_per_sample = 8; if(config.decimation < 1) config.decimation = 1; -- 2.39.5