diff options
| author | JuliDi <[email protected]> | 2023-09-08 17:40:20 +0200 |
|---|---|---|
| committer | JuliDi <[email protected]> | 2023-09-08 17:40:20 +0200 |
| commit | cf2d4eca7c3a3f53aa57a7d9a53de490962019cf (patch) | |
| tree | 9a3ef5efef0fd0a5719f229a45bf7f8cfdb0bbb4 /examples/stm32h7/src/bin/eth.rs | |
| parent | 3e0b752befd492229bfb4c6f9fd3213cfd69a0fc (diff) | |
add wait_config_up to examples
Diffstat (limited to 'examples/stm32h7/src/bin/eth.rs')
| -rw-r--r-- | examples/stm32h7/src/bin/eth.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/stm32h7/src/bin/eth.rs b/examples/stm32h7/src/bin/eth.rs index 26a386e49..e691c6d06 100644 --- a/examples/stm32h7/src/bin/eth.rs +++ b/examples/stm32h7/src/bin/eth.rs | |||
| @@ -83,6 +83,9 @@ async fn main(spawner: Spawner) -> ! { | |||
| 83 | // Launch network task | 83 | // Launch network task |
| 84 | unwrap!(spawner.spawn(net_task(&stack))); | 84 | unwrap!(spawner.spawn(net_task(&stack))); |
| 85 | 85 | ||
| 86 | // Ensure DHCP configuration is up before trying connect | ||
| 87 | stack.wait_config_up().await; | ||
| 88 | |||
| 86 | info!("Network task initialized"); | 89 | info!("Network task initialized"); |
| 87 | 90 | ||
| 88 | // Then we can use it! | 91 | // Then we can use it! |
