Fix adc channel configuration

This commit is contained in:
Anton Pöhl 2024-04-22 08:07:07 +00:00
parent e3825b5c5b
commit a3225387fb
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ pub struct AdcPins(
impl adc::SetChannels<AdcPins> for adc::Adc<ADC1>
{
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);
}
}