Skip to content

Commit 1cd32be

Browse files
authored
condition wrongly inverted by 0e66113 (#282)
1 parent fcd8969 commit 1cd32be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rtc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ impl timer::Cancel for WakeupTimer<'_> {
628628
self.rtc.write(false, |rtc| {
629629
// Disable the wakeup timer
630630
rtc.cr.modify(|_, w| w.wute().clear_bit());
631-
while rtc_registers::is_wakeup_timer_write_flag_set(&rtc) {}
631+
while !rtc_registers::is_wakeup_timer_write_flag_set(rtc) {}
632632
rtc_registers::clear_wakeup_timer_flag(rtc);
633633

634634
// According to the reference manual, section 26.7.4, the WUTF flag

0 commit comments

Comments
 (0)