aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-time/src/timer.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/embassy-time/src/timer.rs b/embassy-time/src/timer.rs
index 8996aefbc..88134bc69 100644
--- a/embassy-time/src/timer.rs
+++ b/embassy-time/src/timer.rs
@@ -133,8 +133,7 @@ impl Ticker {
133 Self { expires_at, duration } 133 Self { expires_at, duration }
134 } 134 }
135 135
136 /// Resets the ticker back to its original state. 136 /// Resets the ticker back to its original state.
137 ///
138 /// This causes the ticker to go back to zero, even if the current tick isn't over yet. 137 /// This causes the ticker to go back to zero, even if the current tick isn't over yet.
139 pub fn reset(&mut self) { 138 pub fn reset(&mut self) {
140 self.expires_at = Instant::now() + self.duration; 139 self.expires_at = Instant::now() + self.duration;