We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcd8969 commit 1cd32beCopy full SHA for 1cd32be
src/rtc.rs
@@ -628,7 +628,7 @@ impl timer::Cancel for WakeupTimer<'_> {
628
self.rtc.write(false, |rtc| {
629
// Disable the wakeup timer
630
rtc.cr.modify(|_, w| w.wute().clear_bit());
631
- while rtc_registers::is_wakeup_timer_write_flag_set(&rtc) {}
+ while !rtc_registers::is_wakeup_timer_write_flag_set(rtc) {}
632
rtc_registers::clear_wakeup_timer_flag(rtc);
633
634
// According to the reference manual, section 26.7.4, the WUTF flag
0 commit comments