aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkalkyl <[email protected]>2022-11-14 16:24:21 +0100
committerkalkyl <[email protected]>2022-11-14 16:24:21 +0100
commit0b066b22d11ee07ed64906b27e950ba83368aa49 (patch)
treecbf625f0c4f7daa2f238ea44a3311a67ac20fd65
parent3a1ddd66c64db1c5efd79b89efd76ac97d9eccce (diff)
Check events_acquired
-rw-r--r--embassy-nrf/src/spis.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-nrf/src/spis.rs b/embassy-nrf/src/spis.rs
index d382ee0c5..f6f7db3a0 100644
--- a/embassy-nrf/src/spis.rs
+++ b/embassy-nrf/src/spis.rs
@@ -296,7 +296,7 @@ impl<'d, T: Instance> Spis<'d, T> {
296 // Wait until CPU has acquired the semaphore. 296 // Wait until CPU has acquired the semaphore.
297 poll_fn(|cx| { 297 poll_fn(|cx| {
298 s.waker.register(cx.waker()); 298 s.waker.register(cx.waker());
299 if r.semstat.read().bits() == 1 { 299 if r.events_acquired.read().bits() == 1 {
300 r.events_acquired.reset(); 300 r.events_acquired.reset();
301 return Poll::Ready(()); 301 return Poll::Ready(());
302 } 302 }