aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32h5/src/bin/eth.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32h5/src/bin/eth.rs')
-rw-r--r--examples/stm32h5/src/bin/eth.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/stm32h5/src/bin/eth.rs b/examples/stm32h5/src/bin/eth.rs
index 4034b552c..a84fe358b 100644
--- a/examples/stm32h5/src/bin/eth.rs
+++ b/examples/stm32h5/src/bin/eth.rs
@@ -15,7 +15,6 @@ use embassy_stm32::time::Hertz;
15use embassy_stm32::{bind_interrupts, eth, peripherals, rng, Config}; 15use embassy_stm32::{bind_interrupts, eth, peripherals, rng, Config};
16use embassy_time::Timer; 16use embassy_time::Timer;
17use embedded_io_async::Write; 17use embedded_io_async::Write;
18use rand_core::RngCore;
19use static_cell::StaticCell; 18use static_cell::StaticCell;
20use {defmt_rtt as _, panic_probe as _}; 19use {defmt_rtt as _, panic_probe as _};
21 20
@@ -95,7 +94,7 @@ async fn main(spawner: Spawner) -> ! {
95 let (stack, runner) = embassy_net::new(device, config, RESOURCES.init(StackResources::new()), seed); 94 let (stack, runner) = embassy_net::new(device, config, RESOURCES.init(StackResources::new()), seed);
96 95
97 // Launch network task 96 // Launch network task
98 unwrap!(spawner.spawn(net_task(runner))); 97 spawner.spawn(unwrap!(net_task(runner)));
99 98
100 // Ensure DHCP configuration is up before trying connect 99 // Ensure DHCP configuration is up before trying connect
101 stack.wait_config_up().await; 100 stack.wait_config_up().await;