Skip to content

Commit 89d5a78

Browse files
authored
S2: wait for SPI to become idle (#3382)
1 parent 0876bac commit 89d5a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp-hal/src/spi/master.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ mod dma {
14071407

14081408
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
14091409
if self.0.interrupts().contains(SpiInterrupt::TransferDone) {
1410-
#[cfg(esp32)]
1410+
#[cfg(any(esp32, esp32s2))]
14111411
// Need to poll for done-ness even after interrupt fires.
14121412
if self.0.busy() {
14131413
cx.waker().wake_by_ref();

0 commit comments

Comments
 (0)