mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
Merge pull request #313 from russell/patch-1
Update example to use better initial value
This commit is contained in:
commit
ac0e687431
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ const APP: () = {
|
|||
fn init(cx: init::Context) {
|
||||
// omitted: initialization of `CYCCNT`
|
||||
|
||||
cx.schedule.foo(Instant::now() + PERIOD.cycles()).unwrap();
|
||||
cx.schedule.foo(cx.start + PERIOD.cycles()).unwrap();
|
||||
}
|
||||
|
||||
#[task(schedule = [foo])]
|
||||
|
|
Loading…
Reference in a new issue