From 20b1dbfed8aa4a4c520d7469c3575598e26729f9 Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Thu, 8 Feb 2018 14:22:50 -0500 Subject: [PATCH] update for chibios --- quantum/audio/audio_arm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quantum/audio/audio_arm.c b/quantum/audio/audio_arm.c index f5ca417b..247dc337 100644 --- a/quantum/audio/audio_arm.c +++ b/quantum/audio/audio_arm.c @@ -241,7 +241,7 @@ static const dacsample_t dac_buffer_2[DAC_BUFFER_SIZE] = { * DAC streaming callback. */ size_t nx = 0, ny = 0, nz = 0; -static void end_cb1(DACDriver *dacp, const dacsample_t *buffer, size_t n) { +static void end_cb1(DACDriver *dacp, dacsample_t *buffer, size_t n) { (void)dacp; @@ -564,7 +564,7 @@ static void gpt_cb8(GPTDriver *gptp) { note_position++; bool end_of_note = false; if (GET_CHANNEL_1_FREQ > 0) { - if (!note_resting) + if (!note_resting) end_of_note = (note_position >= (note_length*16 - 1)); else end_of_note = (note_position >= (note_length*16));