Commit fba9834
Merge #131
131: Poll for completion on SPI write. r=therealprof a=newAM
Closes #130
---
Continuing discussion from #130 :
The suggested implementation was replacing this:
```rust
self.check_send().ok();
Ok(())
```
With this:
```rust
nb::block!(self.check_send())
```
The concern I have with that is it seems the last `check_send().ok()` was intended to clear the `OVR` error bit that may be set due to dropped reads.
Additionally, it does not seem that this works as intended, the CS still goes high before the write is completed with consecutive write calls.
Co-authored-by: Alex M <[email protected]>1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
| 485 | + | |
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
| 529 | + | |
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
0 commit comments