We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73b0fac commit 998a99eCopy full SHA for 998a99e
src/spi.rs
@@ -400,7 +400,7 @@ where
400
nb::Error::Other(Error::ModeFault)
401
} else if sr.crcerr().bit_is_set() {
402
nb::Error::Other(Error::Crc)
403
- } else if sr.txe().bit_is_set() && sr.bsy().bit_is_clear() {
+ } else if sr.txe().bit_is_set() {
404
return Ok(());
405
} else {
406
nb::Error::WouldBlock
@@ -482,7 +482,7 @@ where
482
}
483
484
// Do one last status register check before continuing
485
- nb::block!(self.check_send()).ok();
+ self.check_send().ok();
486
Ok(())
487
488
@@ -526,7 +526,7 @@ where
526
527
528
529
530
531
532
0 commit comments