File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,9 @@ where
203
203
type Error = Infallible ;
204
204
205
205
fn write ( & mut self , words : & [ u8 ] ) -> Result < ( ) , Self :: Error > {
206
- self . spi . write_bytes ( words)
206
+ self . spi . write_bytes ( words) ?;
207
+ self . spi . flush ( ) ?;
208
+ Ok ( ( ) )
207
209
}
208
210
}
209
211
@@ -592,6 +594,9 @@ pub trait Instance {
592
594
// Wait for all chunks to complete except the last one.
593
595
// The function is allowed to return before the bus is idle.
594
596
// see [embedded-hal flushing](https://docs.rs/embedded-hal/1.0.0-alpha.8/embedded_hal/spi/blocking/index.html#flushing)
597
+ //
598
+ // THIS IS NOT TRUE FOR EH 0.2.X! MAKE SURE TO FLUSH IN EH 0.2.X TRAIT
599
+ // IMPLEMENTATIONS!
595
600
if i < num_chunks {
596
601
while reg_block. cmd . read ( ) . usr ( ) . bit_is_set ( ) {
597
602
// wait
You can’t perform that action at this time.
0 commit comments