diff options
-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])] |