mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 14:53:03 +00:00
parent
1f7209966c
commit
211f3357b7
@ -704,7 +704,7 @@ impl<'d, T: Instance> driver::Endpoint for Endpoint<'d, T, In> {
|
|||||||
trace!("wait_enabled OUT WAITING");
|
trace!("wait_enabled OUT WAITING");
|
||||||
let index = self.info.addr.index();
|
let index = self.info.addr.index();
|
||||||
poll_fn(|cx| {
|
poll_fn(|cx| {
|
||||||
EP_OUT_WAKERS[index].register(cx.waker());
|
EP_IN_WAKERS[index].register(cx.waker());
|
||||||
let regs = T::regs();
|
let regs = T::regs();
|
||||||
if regs.epr(index).read().stat_tx() == Stat::DISABLED {
|
if regs.epr(index).read().stat_tx() == Stat::DISABLED {
|
||||||
Poll::Pending
|
Poll::Pending
|
||||||
|
Loading…
Reference in New Issue
Block a user