Skip to content

Commit 998a99e

Browse files
committed
Revert "Merge stm32-rs#131"
This reverts commit fba9834, reversing changes made to fa3f2c2.
1 parent 73b0fac commit 998a99e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/spi.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ where
400400
nb::Error::Other(Error::ModeFault)
401401
} else if sr.crcerr().bit_is_set() {
402402
nb::Error::Other(Error::Crc)
403-
} else if sr.txe().bit_is_set() && sr.bsy().bit_is_clear() {
403+
} else if sr.txe().bit_is_set() {
404404
return Ok(());
405405
} else {
406406
nb::Error::WouldBlock
@@ -482,7 +482,7 @@ where
482482
}
483483

484484
// Do one last status register check before continuing
485-
nb::block!(self.check_send()).ok();
485+
self.check_send().ok();
486486
Ok(())
487487
}
488488
}
@@ -526,7 +526,7 @@ where
526526
}
527527

528528
// Do one last status register check before continuing
529-
nb::block!(self.check_send()).ok();
529+
self.check_send().ok();
530530
Ok(())
531531
}
532532
}

0 commit comments

Comments
 (0)