mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-28 04:40:52 +00:00
S2: wait for SPI to become idle (#3382)
This commit is contained in:
parent
0876bac6c5
commit
89d5a78da4
@ -1407,7 +1407,7 @@ mod dma {
|
||||
|
||||
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
|
||||
if self.0.interrupts().contains(SpiInterrupt::TransferDone) {
|
||||
#[cfg(esp32)]
|
||||
#[cfg(any(esp32, esp32s2))]
|
||||
// Need to poll for done-ness even after interrupt fires.
|
||||
if self.0.busy() {
|
||||
cx.waker().wake_by_ref();
|
||||
|
Loading…
x
Reference in New Issue
Block a user