diff options
| author | Thales <[email protected]> | 2021-04-25 22:08:38 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-25 22:08:38 -0300 |
| commit | 1f2551d7cd9b0aa45d5c688ae6d1b7be20d1e8e8 (patch) | |
| tree | 0413c6e00da79d79c1a8d6fdb7b216fc9f7ed804 | |
| parent | 37eb7e95066abf3e51b20e65fbec4e28103ad33f (diff) | |
| parent | cb1b240d8bad85ea58e5ef3c33b6f340fa898847 (diff) | |
Merge pull request #149 from xoviat/spi
stm32: fix spi/write
| -rw-r--r-- | embassy-stm32/src/f4/spi.rs | 3 |
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 | ||
