Merge pull request #45 from kbleeke/fix-stuck-ioctl

Spawn Wifi Task immediately, Fix #44
This commit is contained in:
Dario Nieuwenhuis 2023-03-22 13:56:25 +01:00 committed by GitHub
commit 8b24fe3df0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,6 +77,7 @@ async fn main(spawner: Spawner) {
let state = singleton!(cyw43::State::new());
let (net_device, mut control, runner) = cyw43::new(state, pwr, spi, fw).await;
unwrap!(spawner.spawn(wifi_task(runner)));
control.init(clm).await;
control
@ -101,7 +102,6 @@ async fn main(spawner: Spawner) {
seed
));
unwrap!(spawner.spawn(wifi_task(runner)));
unwrap!(spawner.spawn(net_task(stack)));
//control.join_open(env!("WIFI_NETWORK")).await;