aboutsummaryrefslogtreecommitdiff
path: root/embassy-time
diff options
context:
space:
mode:
authorSebastian Goll <[email protected]>2024-04-02 16:06:15 +0200
committerSebastian Goll <[email protected]>2024-04-02 16:06:15 +0200
commit804b19b116ab4a4e883eb709dac3fddd982dc59e (patch)
tree0fc262be044c7106627174abcebb99926ede79ea /embassy-time
parent6564fab09269d365b2a9ad5f9633e107ae79e2ca (diff)
parent016d552d1addb175ecba2bd96d794d8135fd51cc (diff)
Merge remote-tracking branch 'upstream/main' into i2c-async-transaction
Diffstat (limited to 'embassy-time')
-rw-r--r--embassy-time/src/timer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-time/src/timer.rs b/embassy-time/src/timer.rs
index d6d0a46e2..757c3ff00 100644
--- a/embassy-time/src/timer.rs
+++ b/embassy-time/src/timer.rs
@@ -203,7 +203,7 @@ impl Ticker {
203 } 203 }
204 204
205 /// Waits for the next tick. 205 /// Waits for the next tick.
206 pub fn next(&mut self) -> impl Future<Output = ()> + '_ { 206 pub fn next(&mut self) -> impl Future<Output = ()> + Send + Sync + '_ {
207 poll_fn(|cx| { 207 poll_fn(|cx| {
208 if self.expires_at <= Instant::now() { 208 if self.expires_at <= Instant::now() {
209 let dur = self.duration; 209 let dur = self.duration;