aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32g4/src/bin
diff options
context:
space:
mode:
authorTorin Cooper-Bennun <[email protected]>2024-04-19 15:20:04 +0100
committerTorin Cooper-Bennun <[email protected]>2024-04-22 13:31:01 +0100
commit846abfae2b8a24715542d57d4e6ea4386607d845 (patch)
treee70464b1aeda1c6bad93c6c1e6a4bee4e2fe91c6 /examples/stm32g4/src/bin
parent543c02e649ea8ec05597daca3816c05db2c6ab53 (diff)
examples: stm32: can: fix build
Diffstat (limited to 'examples/stm32g4/src/bin')
-rw-r--r--examples/stm32g4/src/bin/can.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32g4/src/bin/can.rs b/examples/stm32g4/src/bin/can.rs
index 2ed632a93..7836334af 100644
--- a/examples/stm32g4/src/bin/can.rs
+++ b/examples/stm32g4/src/bin/can.rs
@@ -38,7 +38,7 @@ async fn main(_spawner: Spawner) {
38 38
39 let mut can = can::CanConfigurator::new(peripherals.FDCAN1, peripherals.PA11, peripherals.PA12, Irqs); 39 let mut can = can::CanConfigurator::new(peripherals.FDCAN1, peripherals.PA11, peripherals.PA12, Irqs);
40 40
41 can.set_extended_filter( 41 can.properties().set_extended_filter(
42 can::filter::ExtendedFilterSlot::_0, 42 can::filter::ExtendedFilterSlot::_0,
43 can::filter::ExtendedFilter::accept_all_into_fifo1(), 43 can::filter::ExtendedFilter::accept_all_into_fifo1(),
44 ); 44 );
@@ -128,7 +128,7 @@ async fn main(_spawner: Spawner) {
128 } 128 }
129 } 129 }
130 i = 0; 130 i = 0;
131 let (mut tx, mut rx) = can.split(); 131 let (mut tx, mut rx, _props) = can.split();
132 // With split 132 // With split
133 loop { 133 loop {
134 let frame = can::frame::Frame::new_extended(0x123456F, &[i; 8]).unwrap(); 134 let frame = can::frame::Frame::new_extended(0x123456F, &[i; 8]).unwrap();