Skip to content

Commit b02eaa0

Browse files
authored
fix warning
1 parent ae7164e commit b02eaa0

File tree

1 file changed

+1
-1
lines changed
  • src/rp2_common/hardware_dma

1 file changed

+1
-1
lines changed

src/rp2_common/hardware_dma/dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void dma_channel_cleanup(uint channel) {
7575
// Disable CHAIN_TO, and disable channel, so that it ignores any further triggers
7676
hw_write_masked( &dma_hw->ch[channel].al1_ctrl, (channel << DMA_CH0_CTRL_TRIG_CHAIN_TO_LSB) | (0u << DMA_CH0_CTRL_TRIG_EN_LSB), DMA_CH0_CTRL_TRIG_CHAIN_TO_BITS | DMA_CH0_CTRL_TRIG_EN_BITS );
7777
// disable IRQs first as abort can cause spurious IRQs
78-
for(int i=0; i < NUM_DMA_IRQS; i++) {
78+
for(uint i=0; i < NUM_DMA_IRQS; i++) {
7979
dma_irqn_set_channel_enabled(i, channel, false);
8080
}
8181
dma_channel_abort(channel);

0 commit comments

Comments
 (0)