stm32: fix USB wait_enabled IN messages

This commit is contained in:
Ben Schattinger 2023-12-26 18:26:01 -05:00 committed by GitHub
parent 211f3357b7
commit 87b23f9037
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -701,7 +701,7 @@ impl<'d, T: Instance> driver::Endpoint for Endpoint<'d, T, In> {
} }
async fn wait_enabled(&mut self) { async fn wait_enabled(&mut self) {
trace!("wait_enabled OUT WAITING"); trace!("wait_enabled IN WAITING");
let index = self.info.addr.index(); let index = self.info.addr.index();
poll_fn(|cx| { poll_fn(|cx| {
EP_IN_WAKERS[index].register(cx.waker()); EP_IN_WAKERS[index].register(cx.waker());
@ -713,7 +713,7 @@ impl<'d, T: Instance> driver::Endpoint for Endpoint<'d, T, In> {
} }
}) })
.await; .await;
trace!("wait_enabled OUT OK"); trace!("wait_enabled IN OK");
} }
} }