diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-03-22 13:56:25 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-22 13:56:25 +0100 |
| commit | 8b24fe3df02862991b2574f9d5c9ada7bd27706b (patch) | |
| tree | f4d744caf0adf2a74dec52f983a8cd31c1591e33 | |
| parent | 33cbc22236634753340392adadd943acb31bd5e2 (diff) | |
| parent | 369f2059627c579c344b1f4d8d34002b466e057d (diff) | |
Merge pull request #45 from kbleeke/fix-stuck-ioctl
Spawn Wifi Task immediately, Fix #44
| -rw-r--r-- | examples/rpi-pico-w/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rpi-pico-w/src/main.rs b/examples/rpi-pico-w/src/main.rs index 67348e454..434851378 100644 --- a/examples/rpi-pico-w/src/main.rs +++ b/examples/rpi-pico-w/src/main.rs | |||
| @@ -77,6 +77,7 @@ async fn main(spawner: Spawner) { | |||
| 77 | 77 | ||
| 78 | let state = singleton!(cyw43::State::new()); | 78 | let state = singleton!(cyw43::State::new()); |
| 79 | let (net_device, mut control, runner) = cyw43::new(state, pwr, spi, fw).await; | 79 | let (net_device, mut control, runner) = cyw43::new(state, pwr, spi, fw).await; |
| 80 | unwrap!(spawner.spawn(wifi_task(runner))); | ||
| 80 | 81 | ||
| 81 | control.init(clm).await; | 82 | control.init(clm).await; |
| 82 | control | 83 | control |
| @@ -101,7 +102,6 @@ async fn main(spawner: Spawner) { | |||
| 101 | seed | 102 | seed |
| 102 | )); | 103 | )); |
| 103 | 104 | ||
| 104 | unwrap!(spawner.spawn(wifi_task(runner))); | ||
| 105 | unwrap!(spawner.spawn(net_task(stack))); | 105 | unwrap!(spawner.spawn(net_task(stack))); |
| 106 | 106 | ||
| 107 | //control.join_open(env!("WIFI_NETWORK")).await; | 107 | //control.join_open(env!("WIFI_NETWORK")).await; |
