Skip to content

Commit

Permalink
Add forgotten Netif::run
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Oct 6, 2024
1 parent 26ba0e2 commit 2243c0f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/wireless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,10 @@ where

info!("Wireless driver started");

self.run_net_with_controller(controller, netif, ble).await
let mut netif_task = pin!(netif.run());
let mut net_task = pin!(self.run_net_with_controller(controller, &netif, ble));

select(&mut netif_task, &mut net_task).coalesce().await
} else {
loop {
let commissioned = self.is_commissioned().await?;
Expand Down

0 comments on commit 2243c0f

Please sign in to comment.