From 43d018b67ff98a68e7d1d8c122f803a3d90c9381 Mon Sep 17 00:00:00 2001 From: Lucas Granberg Date: Thu, 9 Feb 2023 12:44:20 +0200 Subject: [PATCH] Use rng_v2 cfg instead of chip specific for seed error recover hack --- embassy-stm32/src/rng.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/embassy-stm32/src/rng.rs b/embassy-stm32/src/rng.rs index abc62583..cd3cc94c 100644 --- a/embassy-stm32/src/rng.rs +++ b/embassy-stm32/src/rng.rs @@ -32,8 +32,7 @@ impl<'d, T: Instance> Rng<'d, T> { } pub fn reset(&mut self) { - //stm32wl gets stuck if there is a seed error - #[cfg(stm32wl)] + #[cfg(rng_v2)] if unsafe { T::regs().sr().read().seis()} { T::reset(); }