aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/f4/spi.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/embassy-stm32/src/f4/spi.rs b/embassy-stm32/src/f4/spi.rs
index 990fc5e95..d02c78106 100644
--- a/embassy-stm32/src/f4/spi.rs
+++ b/embassy-stm32/src/f4/spi.rs
@@ -283,12 +283,11 @@ where
283 for i in 0..(static_buf.len() - 1) { 283 for i in 0..(static_buf.len() - 1) {
284 let byte = static_buf[i]; 284 let byte = static_buf[i];
285 loop { 285 loop {
286 let fut = InterruptFuture::new(&mut self.spi_int);
287 match write_sr(&spi, byte) { 286 match write_sr(&spi, byte) {
288 Ok(()) => break, 287 Ok(()) => break,
289 _ => {} 288 _ => {}
290 } 289 }
291 fut.await; 290 InterruptFuture::new(&mut self.spi_int).await;
292 } 291 }
293 } 292 }
294 293