Skip to content

Commit

Permalink
Don't read to clear interrupts (esp-rs#2585)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani authored Nov 22, 2024
1 parent 3a4a763 commit 9c1d99d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp-hal/src/dma/pdma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ impl InterruptAccess<DmaRxInterrupt> for AnySpiDmaRxChannel {

fn clear(&self, interrupts: impl Into<EnumSet<DmaRxInterrupt>>) {
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(),
Expand Down

0 comments on commit 9c1d99d

Please sign in to comment.