summaryrefslogtreecommitdiffstats
path: root/platforms
diff options
context:
space:
mode:
authorNebuleon <2391500+Nebuleon@users.noreply.github.com>2023-07-27 00:00:27 -0400
committerGitHub <noreply@github.com>2023-07-26 21:00:27 -0700
commit821db155f20f441c2d3aa6ff4e10878bfccdf45c (patch)
tree888093ca3f32b3bb8738d73a4827cad2441b4844 /platforms
parentb718b434daa9776a246b63df8c627759be7904a1 (diff)
Fix stuck note with square wave in additive DAC (#21589)
Diffstat (limited to 'platforms')
-rw-r--r--platforms/chibios/drivers/audio_dac_additive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platforms/chibios/drivers/audio_dac_additive.c b/platforms/chibios/drivers/audio_dac_additive.c
index 0f29755d1a..419c8be230 100644
--- a/platforms/chibios/drivers/audio_dac_additive.c
+++ b/platforms/chibios/drivers/audio_dac_additive.c
@@ -66,7 +66,7 @@ static const dacsample_t dac_buffer_triangle[AUDIO_DAC_BUFFER_SIZE] = {
#endif // AUDIO_DAC_SAMPLE_WAVEFORM_TRIANGLE
#ifdef AUDIO_DAC_SAMPLE_WAVEFORM_SQUARE
static const dacsample_t dac_buffer_square[AUDIO_DAC_BUFFER_SIZE] = {
- [0 ... AUDIO_DAC_BUFFER_SIZE / 2 - 1] = 0, // first and
+ [0 ... AUDIO_DAC_BUFFER_SIZE / 2 - 1] = AUDIO_DAC_OFF_VALUE, // first and
[AUDIO_DAC_BUFFER_SIZE / 2 ... AUDIO_DAC_BUFFER_SIZE - 1] = AUDIO_DAC_SAMPLE_MAX, // second half
};
#endif // AUDIO_DAC_SAMPLE_WAVEFORM_SQUARE