Skip to content

Commit

Permalink
Clear state on stop (esp-rs#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani authored and bjoernQ committed May 24, 2024
1 parent 12a95b6 commit 69a72da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esp-wifi/src/wifi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1462,6 +1462,8 @@ mod asynch {
embedded_svc::wifi::Wifi::stop(self)?;
WifiEventFuture::new(event).await;

unsafe { WIFI_STATE = -1 };

Ok(())
}

Expand Down

0 comments on commit 69a72da

Please sign in to comment.