diff options
| -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)); |
