This commit is contained in:
Lucas Granberg 2023-02-09 13:01:44 +02:00
parent 43d018b67f
commit 2b6654541d

View File

@ -32,8 +32,9 @@ impl<'d, T: Instance> Rng<'d, T> {
}
pub fn reset(&mut self) {
// rng_v2 locks up on seed error, needs reset
#[cfg(rng_v2)]
if unsafe { T::regs().sr().read().seis()} {
if unsafe { T::regs().sr().read().seis() } {
T::reset();
}
unsafe {