aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCorey Schuhen <[email protected]>2024-03-12 21:19:06 +1000
committerCorey Schuhen <[email protected]>2024-03-13 17:46:50 +1000
commit242759a600418aaaed1bbbec96a9fc7e7effc383 (patch)
treea93ce6bd6691614311fc749ad782d9d39353be86 /tests
parent12a3af5043fd1d9a32f57b5cab9b5729a304ffc5 (diff)
Use Result instead of Option for Frame creation.
Diffstat (limited to 'tests')
-rw-r--r--tests/stm32/src/bin/can.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stm32/src/bin/can.rs b/tests/stm32/src/bin/can.rs
index e36137b38..c08c69a3b 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]).unwrap();
64 64
65 info!("Transmitting frame..."); 65 info!("Transmitting frame...");
66 let tx_ts = Instant::now(); 66 let tx_ts = Instant::now();