From 0aa75d3544a2092a0ba6ce689c3f025f22ec30e4 Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 22 Jul 2020 23:47:57 +0200 Subject: [PATCH] experiments: fix timer.get_us() usage --- experiments/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/experiments/src/main.rs b/experiments/src/main.rs index ad02c85..323c7bd 100644 --- a/experiments/src/main.rs +++ b/experiments/src/main.rs @@ -247,7 +247,7 @@ pub fn main_core0() { loop { delay(&mut countdown, Milliseconds(1000)).await; - let timestamp = timer.get_us(); + let timestamp = timer.get_us().0; let seconds = timestamp / 1_000_000; let micros = timestamp % 1_000_000; let (rx, tx) = {