diff options
| author | xoviat <[email protected]> | 2025-12-11 09:08:50 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-11 09:08:50 -0600 |
| commit | 1aadce76847a7686bf66e3a6532e18e05042f78a (patch) | |
| tree | ca42d80e784a6746065bd4e0c676db3ef0f10b93 /embassy-time/src/timer.rs | |
| parent | 52a9b08f0ca13d23bfb039c884a9101997c10567 (diff) | |
| parent | f650afc33b2d6b39116f27c6545c5f2d9e3c7d06 (diff) | |
Merge branch 'main' into main
Diffstat (limited to 'embassy-time/src/timer.rs')
| -rw-r--r-- | embassy-time/src/timer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-time/src/timer.rs b/embassy-time/src/timer.rs index 2f5967c63..e6d1aed84 100644 --- a/embassy-time/src/timer.rs +++ b/embassy-time/src/timer.rs | |||
| @@ -253,7 +253,7 @@ impl Ticker { | |||
| 253 | } | 253 | } |
| 254 | 254 | ||
| 255 | /// Reset the ticker at the deadline. | 255 | /// Reset the ticker at the deadline. |
| 256 | /// If the deadline is in the past, the ticker will fire instantly. | 256 | /// If the deadline is in the past, the ticker will fire before the next scheduled tick. |
| 257 | pub fn reset_at(&mut self, deadline: Instant) { | 257 | pub fn reset_at(&mut self, deadline: Instant) { |
| 258 | self.expires_at = deadline + self.duration; | 258 | self.expires_at = deadline + self.duration; |
| 259 | } | 259 | } |
