Merge pull request #1815 from embassy-rs/esp-hosted-oopsie

net-esp-hosted: fix oopsie
This commit is contained in:
Dario Nieuwenhuis 2023-08-23 09:42:32 +00:00 committed by GitHub
commit 0568738f77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,7 @@ impl<'a> Control<'a> {
pub async fn disconnect(&mut self) -> Result<(), Error> {
let req = proto::CtrlMsgReqGetStatus {};
ioctl!(self, ReqDisconnectAp, RespDisconnectAp, req, resp);
self.state_ch.set_link_state(LinkState::Up);
self.state_ch.set_link_state(LinkState::Down);
Ok(())
}