aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxoviat <[email protected]>2021-04-24 17:10:51 -0500
committerxoviat <[email protected]>2021-04-24 17:10:51 -0500
commitcb1b240d8bad85ea58e5ef3c33b6f340fa898847 (patch)
tree0413c6e00da79d79c1a8d6fdb7b216fc9f7ed804
parent1fef2d08fbacb7b37cc7a47734bdd840f8a97e04 (diff)
stm32: fix spi/write
-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