diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2020-06-11 18:45:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-11 18:45:51 +0200 |
| commit | ac0e6874314f77013beaec8d010d9f132e486c8c (patch) | |
| tree | 306c1ed3508e25a29a9b6a4e8ebba14a6b3d0f56 /examples | |
| parent | 88982249505868d9cd16563cb5b03a50e115659f (diff) | |
| parent | 7266ffe3a655f87f8c55d6db6f138c569b31b74a (diff) | |
Merge pull request #313 from russell/patch-1
Update example to use better initial value
Diffstat (limited to 'examples')
| -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 dca0ad5..3d32bc2 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])] |
