diff --git a/esp-hal/src/dma/pdma.rs b/esp-hal/src/dma/pdma.rs index 0847eea7b72..1bfa3fe1123 100644 --- a/esp-hal/src/dma/pdma.rs +++ b/esp-hal/src/dma/pdma.rs @@ -333,7 +333,7 @@ impl InterruptAccess for AnySpiDmaRxChannel { fn clear(&self, interrupts: impl Into>) { let spi = self.0.register_block(); - spi.dma_int_clr().modify(|_, w| { + spi.dma_int_clr().write(|w| { for interrupt in interrupts.into() { match interrupt { DmaRxInterrupt::SuccessfulEof => w.in_suc_eof().clear_bit_by_one(),