From 26eef35f07698d23aafae90e1c230b52e100a334 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 e4483c3028..fba7c59873 100644 --- a/quantum/audio/audio_arm.c +++ b/quantum/audio/audio_arm.c @@ -218,17 +218,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