aboutsummaryrefslogtreecommitdiffstats
path: root/src/glutt-o-logique
diff options
context:
space:
mode:
Diffstat (limited to 'src/glutt-o-logique')
-rw-r--r--src/glutt-o-logique/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glutt-o-logique/audio.c b/src/glutt-o-logique/audio.c
index c2c2694..91fcc65 100644
--- a/src/glutt-o-logique/audio.c
+++ b/src/glutt-o-logique/audio.c
@@ -136,8 +136,8 @@ void audio_set_volume(int volume) {
void audio_play_with_callback(AudioCallbackFunction *callback, void *context) {
audio_stop_dma();
- NVIC_EnableIRQ(DMA1_Stream7_IRQn);
NVIC_SetPriority(DMA1_Stream7_IRQn, 5);
+ NVIC_EnableIRQ(DMA1_Stream7_IRQn);
SPI3 ->CR2 |= SPI_CR2_TXDMAEN; // Enable I2S TX DMA request.