Skip to content

Commit

Permalink
[fix][dma] fix index in dma2_isr for dma_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitali Fendel authored and sakumisue committed Dec 8, 2023
1 parent e46a30b commit 4f7ac32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/lhal/src/bflb_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void dma2_isr(int irq, void *arg)

for (uint8_t i = 0; i < 8; i++) {
if (regval & (1 << i)) {
dma_callback[1][i].handler(dma_callback[2][i].arg);
dma_callback[2][i].handler(dma_callback[2][i].arg);
}
}
}
Expand Down

0 comments on commit 4f7ac32

Please sign in to comment.