aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32g4/src/bin/can.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/stm32g4/src/bin/can.rs b/examples/stm32g4/src/bin/can.rs
index 7551b2a55..93b206de8 100644
--- a/examples/stm32g4/src/bin/can.rs
+++ b/examples/stm32g4/src/bin/can.rs
@@ -201,7 +201,11 @@ async fn main(_spawner: Spawner) {
201 let frame = can::frame::ClassicFrame::new_extended(0x123456F, &[i; 8]).unwrap(); 201 let frame = can::frame::ClassicFrame::new_extended(0x123456F, &[i; 8]).unwrap();
202 info!("Writing frame"); 202 info!("Writing frame");
203 203
204 _ = can.write(frame).await; 204 // You can use any of these approaches to send. The writer makes it
205 // easy to share sending from multiple tasks.
206 //_ = can.write(frame).await;
207 //can.writer().try_write(frame).unwrap();
208 can.writer().write(frame).await;
205 209
206 match can.read().await { 210 match can.read().await {
207 Ok((rx_frame, ts)) => { 211 Ok((rx_frame, ts)) => {