From b04103f6df712233b7659f2a845461f4db682e32 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 21 Jan 2020 22:23:20 +0100 Subject: docs: do not use Instant::now in #[init] --- examples/schedule.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/schedule.rs') diff --git a/examples/schedule.rs b/examples/schedule.rs index 97818e3..a1c41ca 100644 --- a/examples/schedule.rs +++ b/examples/schedule.rs @@ -20,6 +20,7 @@ const APP: () = { cx.core.DWT.enable_cycle_counter(); // semantically, the monotonic timer is frozen at time "zero" during `init` + // NOTE do *not* call `Instant::now` in this context; it will return a nonsense value let now = cx.start; // the start time of the system hprintln!("init @ {:?}", now).unwrap(); -- cgit v1.2.3