From 9c1d99d9b4ba1a0fa9da3cd15612e44384a67e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Fri, 22 Nov 2024 11:55:53 +0100 Subject: [PATCH] Don't read to clear interrupts (#2585) --- esp-hal/src/dma/pdma.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp-hal/src/dma/pdma.rs b/esp-hal/src/dma/pdma.rs index 0847eea7b..1bfa3fe11 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(),