aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/application/stm32wb-dfu/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/boot/application/stm32wb-dfu/src')
-rw-r--r--examples/boot/application/stm32wb-dfu/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/boot/application/stm32wb-dfu/src/main.rs b/examples/boot/application/stm32wb-dfu/src/main.rs
index 0ab99ff90..dda2b795b 100644
--- a/examples/boot/application/stm32wb-dfu/src/main.rs
+++ b/examples/boot/application/stm32wb-dfu/src/main.rs
@@ -44,7 +44,7 @@ async fn main(_spawner: Spawner) {
44 let mut config_descriptor = [0; 256]; 44 let mut config_descriptor = [0; 256];
45 let mut bos_descriptor = [0; 256]; 45 let mut bos_descriptor = [0; 256];
46 let mut control_buf = [0; 64]; 46 let mut control_buf = [0; 64];
47 let mut state = Control::new(firmware_state, DfuAttributes::CAN_DOWNLOAD); 47 let mut state = Control::new(firmware_state, DfuAttributes::CAN_DOWNLOAD, ResetImmediate);
48 let mut builder = Builder::new( 48 let mut builder = Builder::new(
49 driver, 49 driver,
50 config, 50 config,
@@ -54,7 +54,7 @@ async fn main(_spawner: Spawner) {
54 &mut control_buf, 54 &mut control_buf,
55 ); 55 );
56 56
57 usb_dfu::<_, _, ResetImmediate>(&mut builder, &mut state, Duration::from_millis(2500)); 57 usb_dfu(&mut builder, &mut state, Duration::from_millis(2500));
58 58
59 let mut dev = builder.build(); 59 let mut dev = builder.build();
60 dev.run().await 60 dev.run().await