diff options
| author | Lukas Krejci <[email protected]> | 2022-11-30 15:57:52 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-01-02 21:34:13 +0100 |
| commit | 001610f0d0b94859b8c8800dcdfa255343f2ea05 (patch) | |
| tree | 34ed7bfa5e96b6b6090f55c2b1eb3d4f4d117a96 /examples | |
| parent | 072b8ce0352f4a000db4d525683d170799b83b1a (diff) | |
Be able to specify the power management mode at init time.
Diffstat (limited to 'examples')
| -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 fd58e46df..73cfdf42f 100644 --- a/examples/rpi-pico-w/src/main.rs +++ b/examples/rpi-pico-w/src/main.rs | |||
| @@ -70,7 +70,7 @@ async fn main(spawner: Spawner) { | |||
| 70 | 70 | ||
| 71 | spawner.spawn(wifi_task(runner)).unwrap(); | 71 | spawner.spawn(wifi_task(runner)).unwrap(); |
| 72 | 72 | ||
| 73 | control.init(clm).await; | 73 | control.init(clm, cyw43::PowerManagementMode::PowerSave).await; |
| 74 | 74 | ||
| 75 | //control.join_open(env!("WIFI_NETWORK")).await; | 75 | //control.join_open(env!("WIFI_NETWORK")).await; |
| 76 | control.join_wpa2(env!("WIFI_NETWORK"), env!("WIFI_PASSWORD")).await; | 76 | control.join_wpa2(env!("WIFI_NETWORK"), env!("WIFI_PASSWORD")).await; |
