aboutsummaryrefslogtreecommitdiff
path: root/tests
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 /tests
parent35f284ec22848d7085e00f377136fd66067ca756 (diff)
Shared frame types.
Remove BXCAN speciffic id and frame modules Remove SizedClassicData
Diffstat (limited to 'tests')
-rw-r--r--tests/stm32/src/bin/can.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/stm32/src/bin/can.rs b/tests/stm32/src/bin/can.rs
index e869e8fb9..e36137b38 100644
--- a/tests/stm32/src/bin/can.rs
+++ b/tests/stm32/src/bin/can.rs
@@ -60,7 +60,7 @@ async fn main(_spawner: Spawner) {
60 60
61 let mut i: u8 = 0; 61 let mut i: u8 = 0;
62 loop { 62 loop {
63 let tx_frame = Frame::new_data(unwrap!(StandardId::new(i as _)), [i]); 63 let tx_frame = Frame::new_data(unwrap!(StandardId::new(i as _)), &[i]);
64 64
65 info!("Transmitting frame..."); 65 info!("Transmitting frame...");
66 let tx_ts = Instant::now(); 66 let tx_ts = Instant::now();
@@ -70,7 +70,7 @@ async fn main(_spawner: Spawner) {
70 info!("Frame received!"); 70 info!("Frame received!");
71 71
72 info!("loopback time {}", envelope.ts); 72 info!("loopback time {}", envelope.ts);
73 info!("loopback frame {=u8}", envelope.frame.data().unwrap()[0]); 73 info!("loopback frame {=u8}", envelope.frame.data()[0]);
74 74
75 let latency = envelope.ts.saturating_duration_since(tx_ts); 75 let latency = envelope.ts.saturating_duration_since(tx_ts);
76 info!("loopback latency {} us", latency.as_micros()); 76 info!("loopback latency {} us", latency.as_micros());