Skip to content

Commit 7f425ec

Browse files
committed
Fix flag behaviour
1 parent 811dbc0 commit 7f425ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rtic-monotonics/src/stm32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ macro_rules! make_timer {
294294
}
295295

296296
fn clear_compare_flag() {
297-
$timer.sr().modify(|r| r.set_ccif(1, false));
297+
// Do nothing, because the flags are cleared below in on_interrupt
298298
}
299299

300300
fn pend_interrupt() {

0 commit comments

Comments
 (0)