Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 49dd58c

Browse files
committed
Remove extraneous assert.
1 parent b1502a0 commit 49dd58c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ports/raspberrypi/audio_dma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ static void audio_dma_load_next_block(audio_dma_t *dma, size_t buffer_idx) {
159159
!dma_channel_is_busy(dma->channel[1])) {
160160
// No data has been read, and both DMA channels have now finished, so it's safe to stop.
161161
audio_dma_stop(dma);
162-
assert(dma->channel[buffer_idx] < NUM_DMA_CHANNELS);
163162
}
164163
}
165164
}

0 commit comments

Comments
 (0)