From b88ef032141e87411dabb5d90ef488f5d6af2285 Mon Sep 17 00:00:00 2001 From: Mathias Date: Tue, 23 Aug 2022 13:46:48 +0200 Subject: [PATCH] Only check for ahb error in DMA --- embassy-rp/src/dma.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/embassy-rp/src/dma.rs b/embassy-rp/src/dma.rs index 137e9a0c..69482374 100644 --- a/embassy-rp/src/dma.rs +++ b/embassy-rp/src/dma.rs @@ -17,13 +17,7 @@ unsafe fn DMA_IRQ_0() { for channel in 0..CHANNEL_COUNT { let ctrl_trig = pac::DMA.ch(channel).ctrl_trig().read(); if ctrl_trig.ahb_error() { - panic!("DMA: ahb error on DMA_0 channel {}", channel); - } - if ctrl_trig.read_error() { - panic!("DMA: read error on DMA_0 channel {}", channel); - } - if ctrl_trig.write_error() { - panic!("DMA: write error on DMA_0 channel {}", channel); + panic!("DMA: error on DMA_0 channel {}", channel); } if ints0 & (1 << channel) == (1 << channel) {