diff options
| author | Jared Szechy <[email protected]> | 2025-11-01 21:05:05 -0400 |
|---|---|---|
| committer | Jared Szechy <[email protected]> | 2025-11-01 21:05:05 -0400 |
| commit | ea771315534296aca5bef7efa145a5c8f932b915 (patch) | |
| tree | f19088570e28d5fbca03b120a95ef156279eda19 | |
| parent | cd0b777cc0c71c0f132a49a76addbd468259c4f7 (diff) | |
Fix status polling
| -rw-r--r-- | embassy-stm32/src/sdmmc/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/embassy-stm32/src/sdmmc/mod.rs b/embassy-stm32/src/sdmmc/mod.rs index eef0be4c4..93dfc9d0f 100644 --- a/embassy-stm32/src/sdmmc/mod.rs +++ b/embassy-stm32/src/sdmmc/mod.rs | |||
| @@ -1034,11 +1034,9 @@ impl<'d, T: Instance> Sdmmc<'d, T> { | |||
| 1034 | #[inline] | 1034 | #[inline] |
| 1035 | #[allow(unused)] | 1035 | #[allow(unused)] |
| 1036 | async fn complete_datapath_transfer(block: bool) -> Result<(), Error> { | 1036 | async fn complete_datapath_transfer(block: bool) -> Result<(), Error> { |
| 1037 | let regs = T::regs(); | ||
| 1038 | |||
| 1039 | let res = poll_fn(|cx| { | 1037 | let res = poll_fn(|cx| { |
| 1040 | T::state().register(cx.waker()); | 1038 | T::state().register(cx.waker()); |
| 1041 | let status = regs.star().read(); | 1039 | let status = T::regs().star().read(); |
| 1042 | 1040 | ||
| 1043 | if status.dcrcfail() { | 1041 | if status.dcrcfail() { |
| 1044 | return Poll::Ready(Err(Error::Crc)); | 1042 | return Poll::Ready(Err(Error::Crc)); |
