diff options
| -rw-r--r-- | embassy-stm32/src/rcc/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-stm32/src/rcc/mod.rs b/embassy-stm32/src/rcc/mod.rs index 360df93ae..024c63cf5 100644 --- a/embassy-stm32/src/rcc/mod.rs +++ b/embassy-stm32/src/rcc/mod.rs | |||
| @@ -211,6 +211,8 @@ impl RccInfo { | |||
| 211 | if *refcount > 0 { | 211 | if *refcount > 0 { |
| 212 | return; | 212 | return; |
| 213 | } | 213 | } |
| 214 | } else { | ||
| 215 | panic!("refcount_idx out of bounds: {}", refcount_idx) | ||
| 214 | } | 216 | } |
| 215 | } | 217 | } |
| 216 | 218 | ||
