Skip to content

Commit

Permalink
Fix next expiration when arming
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Dec 7, 2024
1 parent 9794770 commit a6a378a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esp-hal-embassy/src/timer_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ mod adapter {
impl super::TimerQueue {
pub fn schedule_wake(&self, at: u64, task: raw::TaskRef) {
if unsafe { self.inner.lock(|q| q.schedule_wake(at, task)) } {
self.arm_alarm(at);
self.dispatch();
}
}
}
Expand All @@ -118,7 +118,7 @@ mod adapter {
impl super::TimerQueue {
pub fn schedule_wake(&self, at: u64, waker: &Waker) {
if self.inner.lock(|q| q.schedule_wake(at, waker)) {
self.arm_alarm(at);
self.dispatch();
}
}
}
Expand Down

0 comments on commit a6a378a

Please sign in to comment.