Skip to content

Commit

Permalink
Beautification in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Finomnis committed Oct 23, 2024
1 parent 2f9806c commit 2b3331a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtic-monotonics/src/stm32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ macro_rules! make_timer {
// Clear timer value so it is known that we are at the first half period
$timer.cnt().write(|r| r.set_cnt(1));

// The above line raises an update event which will indicate that the timer is already finished.
// Since this is not the case, it should be cleared.
// Triggering the update event might have raised overflow interrupts.
// Clear them to return to a known state.
$timer.sr().write(|r| {
r.0 = !0;
r.set_uif(false);
Expand Down

0 comments on commit 2b3331a

Please sign in to comment.