aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f4/src
diff options
context:
space:
mode:
authorCorey Schuhen <[email protected]>2024-03-07 22:48:25 +1000
committerCorey Schuhen <[email protected]>2024-03-13 17:46:50 +1000
commit12a3af5043fd1d9a32f57b5cab9b5729a304ffc5 (patch)
treef98fe58851d3643363d48cf8b563a280212f0970 /examples/stm32f4/src
parent35f284ec22848d7085e00f377136fd66067ca756 (diff)
Shared frame types.
Remove BXCAN speciffic id and frame modules Remove SizedClassicData
Diffstat (limited to 'examples/stm32f4/src')
-rw-r--r--examples/stm32f4/src/bin/can.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32f4/src/bin/can.rs b/examples/stm32f4/src/bin/can.rs
index b20af8cf1..2ed631a46 100644
--- a/examples/stm32f4/src/bin/can.rs
+++ b/examples/stm32f4/src/bin/can.rs
@@ -51,7 +51,7 @@ async fn main(_spawner: Spawner) {
51 51
52 let mut i: u8 = 0; 52 let mut i: u8 = 0;
53 loop { 53 loop {
54 let tx_frame = Frame::new_data(unwrap!(StandardId::new(i as _)), [i]); 54 let tx_frame = Frame::new_data(unwrap!(StandardId::new(i as _)), &[i]);
55 let tx_ts = Instant::now(); 55 let tx_ts = Instant::now();
56 can.write(&tx_frame).await; 56 can.write(&tx_frame).await;
57 57
@@ -65,7 +65,7 @@ async fn main(_spawner: Spawner) {
65 65
66 info!( 66 info!(
67 "loopback frame {=u8}, latency: {} us", 67 "loopback frame {=u8}, latency: {} us",
68 unwrap!(envelope.frame.data())[0], 68 envelope.frame.data()[0],
69 latency.as_micros() 69 latency.as_micros()
70 ); 70 );
71 i += 1; 71 i += 1;