Code cleanup.

This commit is contained in:
Henrik Berg 2023-06-12 18:12:35 +02:00
parent 6863786243
commit 23724b6bf6

View File

@ -40,7 +40,7 @@ async fn main(spawner: Spawner) {
let state = make_static!(cyw43::State::new()); let state = make_static!(cyw43::State::new());
let (_net_device, mut control, runner) = cyw43::new(state, pwr, spi, fw).await; let (_net_device, mut control, runner) = cyw43::new(state, pwr, spi, fw).await;
unwrap!(spawner.spawn(wifi_task(runner))); unwrap!(spawner.spawn(wifi_task(runner)));
control.init(clm).await; control.init(clm).await;
control control
.set_power_management(cyw43::PowerManagementMode::PowerSave) .set_power_management(cyw43::PowerManagementMode::PowerSave)