mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-25 19:39:32 +01:00
Less ... hacky?
This commit is contained in:
parent
35b4ec0d04
commit
dd52539e32
1 changed files with 3 additions and 2 deletions
|
@ -81,9 +81,10 @@ where
|
||||||
|
|
||||||
Some((nr.task, nr.index))
|
Some((nr.task, nr.index))
|
||||||
}
|
}
|
||||||
Some(dur) => {
|
Some(_) => {
|
||||||
// TODO: Fix this hack...
|
// TODO: Fix this hack...
|
||||||
let new_instant = *now.duration_since_epoch().integer() + *dur.integer();
|
// Extract the compare time
|
||||||
|
let new_instant = *instant.duration_since_epoch().integer();
|
||||||
M::set_compare(new_instant);
|
M::set_compare(new_instant);
|
||||||
|
|
||||||
// Start counting down from the new reload
|
// Start counting down from the new reload
|
||||||
|
|
Loading…
Reference in a new issue