forked from M-Labs/zynq-rs
1
0
Fork 0

experiments: fix timer.get_us() usage

This commit is contained in:
Astro 2020-07-22 23:47:57 +02:00
parent f36b1a610e
commit 0aa75d3544
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ pub fn main_core0() {
loop { loop {
delay(&mut countdown, Milliseconds(1000)).await; delay(&mut countdown, Milliseconds(1000)).await;
let timestamp = timer.get_us(); let timestamp = timer.get_us().0;
let seconds = timestamp / 1_000_000; let seconds = timestamp / 1_000_000;
let micros = timestamp % 1_000_000; let micros = timestamp % 1_000_000;
let (rx, tx) = { let (rx, tx) = {