From a3225387fbe3cf01cb5b8ee36d918c951f6865a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20P=C3=B6hl?= Date: Mon, 22 Apr 2024 08:07:07 +0000 Subject: [PATCH] Fix adc channel configuration --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 2feec1e..fd4e74c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,7 +39,7 @@ pub struct AdcPins( impl adc::SetChannels for adc::Adc { fn set_samples(&mut self) { - for ch in 0..(CONTROL_CNT + 1) as u8 { + for ch in 0..(CONTROL_CNT - 1) as u8 { self.set_channel_sample_time(ch, adc::SampleTime::T_28); } }