aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-04-16 18:35:56 +0000
committerGitHub <[email protected]>2024-04-16 18:35:56 +0000
commit40ad87730f0d21521bf66812de8a3b37f80815ec (patch)
tree2cd2b21821c84153d721a9ada90cd2e84b2507c9
parentbd13b5c0604787a52322308353bec9996f9a199d (diff)
parent32b1b4067fe0645b36ab0727183ac6a9a5f7ac14 (diff)
Merge pull request #2828 from idaniel86/stm32-g4-adc-channel-number-issue
Bug: There are at most 18 channels for the STM32G4 ADCs.
-rw-r--r--embassy-stm32/src/adc/g4.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/adc/g4.rs b/embassy-stm32/src/adc/g4.rs
index f6741f019..221cc2a40 100644
--- a/embassy-stm32/src/adc/g4.rs
+++ b/embassy-stm32/src/adc/g4.rs
@@ -170,7 +170,7 @@ impl<'d, T: Instance> Adc<'d, T> {
170 170
171 fn configure_differential_inputs(&mut self) { 171 fn configure_differential_inputs(&mut self) {
172 T::regs().difsel().modify(|w| { 172 T::regs().difsel().modify(|w| {
173 for n in 0..20 { 173 for n in 0..18 {
174 w.set_difsel(n, Difsel::SINGLEENDED); 174 w.set_difsel(n, Difsel::SINGLEENDED);
175 } 175 }
176 }); 176 });