summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Baumann <derflob@derflob.de>2020-05-07 23:45:32 +0200
committerFlorian Baumann <derflob@derflob.de>2020-05-07 23:45:32 +0200
commit1585ceb1e4d6d3d5ca328406006986f57b082b84 (patch)
tree57e706cf9205b39aa77b2d2871d0fa2ccd6a8c27
parent24f4b93b499cd8896892729c4d1f7ba63d24c976 (diff)
downloadULPSoilMonitor-1585ceb1e4d6d3d5ca328406006986f57b082b84.tar.gz
ULPSoilMonitor-1585ceb1e4d6d3d5ca328406006986f57b082b84.tar.bz2
reduce oversampling to 16
With a 12-bit ADC and 16-bit registers, that's all you can easily do.
-rw-r--r--ulp_soil.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/ulp_soil.s b/ulp_soil.s
index cbe7305..d054d3a 100644
--- a/ulp_soil.s
+++ b/ulp_soil.s
@@ -18,7 +18,7 @@
/* Configure the number of ADC samples to average on each measurement.
For convenience, make it a power of 2. */
- .set adc_oversampling_factor_log, 5
+ .set adc_oversampling_factor_log, 4
.set adc_oversampling_factor, (1 << adc_oversampling_factor_log)
.set soil_threshold, 8