fixed hanging when lse_sysen disabled

This commit is contained in:
Christian Enderle 2024-11-18 12:20:15 +01:00
parent e09e4e9612
commit e76473ae95

View File

@ -257,9 +257,11 @@ impl LsConfig {
w.set_lsesysen(lse_sysen); w.set_lsesysen(lse_sysen);
}); });
if lse_sysen {
while !bdcr().read().lsesysrdy() {} while !bdcr().read().lsesysrdy() {}
} }
} }
}
if self.rtc != RtcClockSource::DISABLE { if self.rtc != RtcClockSource::DISABLE {
bdcr().modify(|w| { bdcr().modify(|w| {