Check events_acquired

This commit is contained in:
kalkyl 2022-11-14 16:24:21 +01:00
parent 3a1ddd66c6
commit 0b066b22d1

View File

@ -296,7 +296,7 @@ impl<'d, T: Instance> Spis<'d, T> {
// Wait until CPU has acquired the semaphore.
poll_fn(|cx| {
s.waker.register(cx.waker());
if r.semstat.read().bits() == 1 {
if r.events_acquired.read().bits() == 1 {
r.events_acquired.reset();
return Poll::Ready(());
}