diff --git a/embassy-stm32/src/rcc/f7.rs b/embassy-stm32/src/rcc/f7.rs index 9f2c63c1..f45a725c 100644 --- a/embassy-stm32/src/rcc/f7.rs +++ b/embassy-stm32/src/rcc/f7.rs @@ -170,7 +170,7 @@ pub(crate) unsafe fn init(config: Config) { // Calculate real AHB clock let hclk = sysclk / hpre_div; - assert!(hclk < max::HCLK_MAX); + assert!(hclk <= max::HCLK_MAX); let pclk1 = config .pclk1