diff options
author | 2020-06-11 18:45:51 +0200 | |
---|---|---|
committer | 2020-06-11 18:45:51 +0200 | |
commit | ac0e6874314f77013beaec8d010d9f132e486c8c (patch) | |
tree | 306c1ed3508e25a29a9b6a4e8ebba14a6b3d0f56 | |
parent | 88982249505868d9cd16563cb5b03a50e115659f (diff) | |
parent | 7266ffe3a655f87f8c55d6db6f138c569b31b74a (diff) | |
download | rtic-ac0e6874314f77013beaec8d010d9f132e486c8c.tar.gz rtic-ac0e6874314f77013beaec8d010d9f132e486c8c.tar.zst rtic-ac0e6874314f77013beaec8d010d9f132e486c8c.zip |
Merge pull request #313 from russell/patch-1
Update example to use better initial value
-rw-r--r-- | examples/periodic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/periodic.rs b/examples/periodic.rs index dca0ad56..3d32bc21 100644 --- a/examples/periodic.rs +++ b/examples/periodic.rs @@ -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])] |