aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32h5/src/bin
diff options
context:
space:
mode:
authorJuliDi <[email protected]>2023-09-08 17:40:20 +0200
committerJuliDi <[email protected]>2023-09-08 17:40:20 +0200
commitcf2d4eca7c3a3f53aa57a7d9a53de490962019cf (patch)
tree9a3ef5efef0fd0a5719f229a45bf7f8cfdb0bbb4 /examples/stm32h5/src/bin
parent3e0b752befd492229bfb4c6f9fd3213cfd69a0fc (diff)
add wait_config_up to examples
Diffstat (limited to 'examples/stm32h5/src/bin')
-rw-r--r--examples/stm32h5/src/bin/eth.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/stm32h5/src/bin/eth.rs b/examples/stm32h5/src/bin/eth.rs
index 763520ab8..c32e0fdb5 100644
--- a/examples/stm32h5/src/bin/eth.rs
+++ b/examples/stm32h5/src/bin/eth.rs
@@ -101,6 +101,9 @@ async fn main(spawner: Spawner) -> ! {
101 // Launch network task 101 // Launch network task
102 unwrap!(spawner.spawn(net_task(&stack))); 102 unwrap!(spawner.spawn(net_task(&stack)));
103 103
104 // Ensure DHCP configuration is up before trying connect
105 stack.wait_config_up().await;
106
104 info!("Network task initialized"); 107 info!("Network task initialized");
105 108
106 // Then we can use it! 109 // Then we can use it!