From f01c45ef54039366b666c28747fd57136d81c472 Mon Sep 17 00:00:00 2001 From: James Young Date: Sat, 29 Feb 2020 12:00:00 -0800 Subject: 2020 February 29 Breaking Changes Update (#8064) --- quantum/audio/audio_arm.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'quantum/audio') diff --git a/quantum/audio/audio_arm.c b/quantum/audio/audio_arm.c index a194a66419..6b54d80acf 100644 --- a/quantum/audio/audio_arm.c +++ b/quantum/audio/audio_arm.c @@ -230,17 +230,11 @@ 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, dacsample_t *buffer, size_t n) { +size_t nz = 0; +static void end_cb1(DACDriver *dacp) { (void)dacp; nz++; - if (dac_buffer == buffer) { - nx += n; - } else { - ny += n; - } - if ((nz % 1000) == 0) { // palTogglePad(GPIOD, GPIOD_LED3); } -- cgit v1.2.3