From 1ff80f8438d4c8223050d5bd8c435ffc0ab0f9c6 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Thu, 24 Feb 2022 05:58:21 +0100 Subject: [PATCH] stm32/mco: fix on h7ab --- embassy-stm32/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-stm32/build.rs b/embassy-stm32/build.rs index 2b642db84..1257e0152 100644 --- a/embassy-stm32/build.rs +++ b/embassy-stm32/build.rs @@ -49,7 +49,7 @@ fn main() { // We *shouldn't* have singletons for these, but the HAL currently requires // singletons, for using with RccPeripheral to enable/disable clocks to them. "rcc" => { - if r.version == "h7" { + if r.version.starts_with("h7") { singletons.push("MCO1".to_string()); singletons.push("MCO2".to_string()); } @@ -436,7 +436,7 @@ fn main() { // MCO is special if pin.signal.starts_with("MCO_") { // Supported in H7 only for now - if regs.version == "h7" { + if regs.version.starts_with("h7") { peri = format_ident!("{}", pin.signal.replace("_", "")); } else { continue;