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/stm32f4/src/bin/eth.rs | |
| parent | 3e0b752befd492229bfb4c6f9fd3213cfd69a0fc (diff) | |
add wait_config_up to examples
Diffstat (limited to 'examples/stm32f4/src/bin/eth.rs')
| -rw-r--r-- | examples/stm32f4/src/bin/eth.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/stm32f4/src/bin/eth.rs b/examples/stm32f4/src/bin/eth.rs index 393e60b73..5f1e62d0a 100644 --- a/examples/stm32f4/src/bin/eth.rs +++ b/examples/stm32f4/src/bin/eth.rs | |||
| @@ -79,7 +79,10 @@ async fn main(spawner: Spawner) -> ! { | |||
| 79 | )); | 79 | )); |
| 80 | 80 | ||
| 81 | // Launch network task | 81 | // Launch network task |
| 82 | unwrap!(spawner.spawn(net_task(&stack))); | 82 | unwrap!(spawner.spawn(net_task(stack))); |
| 83 | |||
| 84 | // Ensure DHCP configuration is up before trying connect | ||
| 85 | stack.wait_config_up().await; | ||
| 83 | 86 | ||
| 84 | info!("Network task initialized"); | 87 | info!("Network task initialized"); |
| 85 | 88 | ||
