From 3394f3ab9d2c0640bbd0804d5fd28cc68153786d Mon Sep 17 00:00:00 2001 From: Frank Stevenson Date: Thu, 24 Jul 2025 13:51:35 +0200 Subject: Panic on improper auto-calibration configurations --- embassy-stm32/src/rcc/u5.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/embassy-stm32/src/rcc/u5.rs b/embassy-stm32/src/rcc/u5.rs index ae0ef73f4..d12416a72 100644 --- a/embassy-stm32/src/rcc/u5.rs +++ b/embassy-stm32/src/rcc/u5.rs @@ -191,9 +191,8 @@ pub(crate) unsafe fn init(config: Config) { // MSIK is active and using LSE for auto-calibration Some(lse_config.frequency) } - // improper configuration, no LSE calibration - _ => None, - } + // improper configuration + _ => panic!("MSIx auto-calibration is enabled for a source that has not been configured.") } } else { None } -- cgit