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