From 295af2a057beec74bb765f6e3dad28b44e30cb19 Mon Sep 17 00:00:00 2001 From: Mathias Date: Fri, 19 Aug 2022 14:16:19 +0200 Subject: [PATCH] Fix bit checking in DMA irq --- embassy-rp/src/dma.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-rp/src/dma.rs b/embassy-rp/src/dma.rs index 820ce005..75ad640c 100644 --- a/embassy-rp/src/dma.rs +++ b/embassy-rp/src/dma.rs @@ -17,7 +17,7 @@ unsafe fn DMA_IRQ_0() { critical_section::with(|_| { for channel in 0..CHANNEL_COUNT { - if ints0 & (1 << channel) == 1 { + if ints0 & (1 << channel) == (1 << channel) { CHANNEL_WAKERS[channel].wake(); } }