limit ADC1 clocks fallback for stm32l series

This commit is contained in:
Sam 2023-11-23 10:43:46 +11:00 committed by Dario Nieuwenhuis
parent 08c1f451b6
commit 1cc9a2fcca

View File

@ -379,7 +379,7 @@ impl PeripheralToClock {
} }
// Absolute fallback, match against the clocks for just the first ADC // Absolute fallback, match against the clocks for just the first ADC
if clocks.contains_key("ADC1") { if peri_name == "ADC" && clocks.contains_key("ADC1") {
return clocks.get("ADC1"); return clocks.get("ADC1");
} }