Merge pull request #313 from russell/patch-1

Update example to use better initial value
This commit is contained in:
Emil Fresk 2020-06-11 18:45:51 +02:00 committed by GitHub
commit ac0e687431
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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])]