diff options
author | James Young <xxiinophobia@yahoo.com> | 2020-02-29 12:00:00 -0800 |
---|---|---|
committer | James Young <xxiinophobia@yahoo.com> | 2020-02-29 11:59:30 -0800 |
commit | 26eef35f07698d23aafae90e1c230b52e100a334 (patch) | |
tree | eb8e43fc58ca55788e6e89430af0db55ea79e324 /quantum/audio/audio_arm.c | |
parent | 85041ff05bf0e5f4ff4535caf6e638491a5614c8 (diff) | |
download | qmk_firmware-26eef35f07698d23aafae90e1c230b52e100a334.tar.gz qmk_firmware-26eef35f07698d23aafae90e1c230b52e100a334.zip |
2020 February 29 Breaking Changes Update (#8064)
Diffstat (limited to 'quantum/audio/audio_arm.c')
-rw-r--r-- | quantum/audio/audio_arm.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/quantum/audio/audio_arm.c b/quantum/audio/audio_arm.c index e4483c302..fba7c5987 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] = { | |||
218 | /* | 218 | /* |
219 | * DAC streaming callback. | 219 | * DAC streaming callback. |
220 | */ | 220 | */ |
221 | size_t nx = 0, ny = 0, nz = 0; | 221 | size_t nz = 0; |
222 | static void end_cb1(DACDriver *dacp, dacsample_t *buffer, size_t n) { | 222 | static void end_cb1(DACDriver *dacp) { |
223 | (void)dacp; | 223 | (void)dacp; |
224 | 224 | ||
225 | nz++; | 225 | nz++; |
226 | if (dac_buffer == buffer) { | ||
227 | nx += n; | ||
228 | } else { | ||
229 | ny += n; | ||
230 | } | ||
231 | |||
232 | if ((nz % 1000) == 0) { | 226 | if ((nz % 1000) == 0) { |
233 | // palTogglePad(GPIOD, GPIOD_LED3); | 227 | // palTogglePad(GPIOD, GPIOD_LED3); |
234 | } | 228 | } |