diff options
| author | David Flemström <[email protected]> | 2024-06-29 01:37:35 +0200 |
|---|---|---|
| committer | David Flemström <[email protected]> | 2024-06-29 01:37:35 +0200 |
| commit | 662e97f7b5dafc652bf82ec8b57df1d99126407a (patch) | |
| tree | 92a0b12b5a962e59e52def79447fc6427fcae48c | |
| parent | 114dda2fd1afb37d2b563b9ac5018830ad7b6d4f (diff) | |
Panic on index-out-of-bounds when releasing RCC node
| -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 | ||
