Fix adc channel configuration
This commit is contained in:
parent
e3825b5c5b
commit
a3225387fb
|
@ -39,7 +39,7 @@ pub struct AdcPins(
|
||||||
impl adc::SetChannels<AdcPins> for adc::Adc<ADC1>
|
impl adc::SetChannels<AdcPins> for adc::Adc<ADC1>
|
||||||
{
|
{
|
||||||
fn set_samples(&mut self) {
|
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);
|
self.set_channel_sample_time(ch, adc::SampleTime::T_28);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user