diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-06-21 19:05:20 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-06-22 21:12:10 +0200 |
| commit | 764b43e82c7b61c21621c1fd9f5fd2f6a3dc419c (patch) | |
| tree | 231c49c4b16fceff27f15f954967a75f1c5074e0 /examples | |
| parent | 082f1ab494587e02d405cad8f186d48943acf16d (diff) | |
esp-hosted: wait for esp firmware init.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/nrf52840/src/bin/wifi_esp_hosted.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/examples/nrf52840/src/bin/wifi_esp_hosted.rs b/examples/nrf52840/src/bin/wifi_esp_hosted.rs index 401dbd33c..b75756f76 100644 --- a/examples/nrf52840/src/bin/wifi_esp_hosted.rs +++ b/examples/nrf52840/src/bin/wifi_esp_hosted.rs | |||
| @@ -69,9 +69,6 @@ async fn main(spawner: Spawner) { | |||
| 69 | 69 | ||
| 70 | unwrap!(spawner.spawn(wifi_task(runner))); | 70 | unwrap!(spawner.spawn(wifi_task(runner))); |
| 71 | 71 | ||
| 72 | // TODO: wait for ESP_INIT event instead of hardcoding delay. | ||
| 73 | Timer::after(Duration::from_secs(3)).await; | ||
| 74 | |||
| 75 | control.init().await; | 72 | control.init().await; |
| 76 | control.join(env!("WIFI_NETWORK"), env!("WIFI_PASSWORD")).await; | 73 | control.join(env!("WIFI_NETWORK"), env!("WIFI_PASSWORD")).await; |
| 77 | 74 | ||
