stm32/can: implement proper RX timestamps

This commit is contained in:
chemicstry
2023-07-25 12:07:09 +03:00
parent 77e34c5e8a
commit 62ab0bf2e7
4 changed files with 58 additions and 16 deletions

View File

@ -60,7 +60,7 @@ async fn main(spawner: Spawner) {
spawner.spawn(send_can_message(tx)).unwrap();
loop {
let frame = rx.read().await.unwrap();
println!("Received: {:?}", frame);
let envelope = rx.read().await.unwrap();
println!("Received: {:?}", envelope);
}
}