Skip to content

Commit

Permalink
Add more comments to clarify
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Feb 4, 2022
1 parent eeb1481 commit 6b68cb4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ impl<const TIMER_HZ: u32> Monotonic for DwtSystick<TIMER_HZ> {
}

#[inline(always)]
fn clear_compare_flag(&mut self) {
fn clear_compare_flag(&mut self) {}

#[cfg(feature = "extend")]
fn disable_timer(&mut self) {
// Set a long reload in case `set_compare()` is not called again.
#[cfg(feature = "extend")]
self.systick.set_reload(0xff_ffff);
#[cfg(feature = "extend")]
self.systick.clear_current();
}

#[cfg(feature = "extend")]
Expand Down

0 comments on commit 6b68cb4

Please sign in to comment.