Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jannic committed Sep 5, 2022
1 parent 069fe28 commit 228edeb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions boards/rp-pico-w/examples/pico_w_blinky.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,15 @@ async fn run(spawner: Spawner, pins: rp_pico_w::Pins, state: &'static cyw43::Sta
if option_env!("WIFI_NETWORK").is_some() {
if option_env!("WIFI_PASSWORD").is_some() {
control
.join_wpa2(option_env!("WIFI_NETWORK").unwrap(), option_env!("WIFI_PASSWORD").unwrap())
.join_wpa2(
option_env!("WIFI_NETWORK").unwrap(),
option_env!("WIFI_PASSWORD").unwrap(),
)
.await;
} else {
control.join_open(option_env!("WIFI_NETWORK").unwrap()).await;
control
.join_open(option_env!("WIFI_NETWORK").unwrap())
.await;
}
} else {
warn!("Environment variable WIFI_NETWORK not set during compilation - not joining wireless network");
Expand Down

0 comments on commit 228edeb

Please sign in to comment.