stm32: fix spi/write
This commit is contained in:
parent
1fef2d08fb
commit
cb1b240d8b
@ -283,12 +283,11 @@ where
|
|||||||
for i in 0..(static_buf.len() - 1) {
|
for i in 0..(static_buf.len() - 1) {
|
||||||
let byte = static_buf[i];
|
let byte = static_buf[i];
|
||||||
loop {
|
loop {
|
||||||
let fut = InterruptFuture::new(&mut self.spi_int);
|
|
||||||
match write_sr(&spi, byte) {
|
match write_sr(&spi, byte) {
|
||||||
Ok(()) => break,
|
Ok(()) => break,
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
fut.await;
|
InterruptFuture::new(&mut self.spi_int).await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user