esp-hosted: wait for esp firmware init.
This commit is contained in:
parent
082f1ab494
commit
764b43e82c
4 changed files with 37 additions and 3 deletions
examples/nrf52840/src/bin
|
@ -69,9 +69,6 @@ async fn main(spawner: Spawner) {
|
|||
|
||||
unwrap!(spawner.spawn(wifi_task(runner)));
|
||||
|
||||
// TODO: wait for ESP_INIT event instead of hardcoding delay.
|
||||
Timer::after(Duration::from_secs(3)).await;
|
||||
|
||||
control.init().await;
|
||||
control.join(env!("WIFI_NETWORK"), env!("WIFI_PASSWORD")).await;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue