From 662e97f7b5dafc652bf82ec8b57df1d99126407a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Flemstr=C3=B6m?= Date: Sat, 29 Jun 2024 01:37:35 +0200 Subject: [PATCH] Panic on index-out-of-bounds when releasing RCC node --- embassy-stm32/src/rcc/mod.rs | 2 ++ 1 file changed, 2 insertions(+) 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 { if *refcount > 0 { return; } + } else { + panic!("refcount_idx out of bounds: {}", refcount_idx) } }