diff options
author | Nebuleon <2391500+Nebuleon@users.noreply.github.com> | 2023-07-27 00:06:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-26 21:06:14 -0700 |
commit | e971ce290ceac6680480331da9e5a3fc7102a501 (patch) | |
tree | 4191f916728aecf9ca939c9e86dc50a7789849aa /platforms | |
parent | 9bc85ff5afb09892312f3b130b7e5f6209835f09 (diff) |
Remove needless precision in additive DAC sample generation (#21498)
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/chibios/drivers/audio_dac_additive.c | 2 |
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 419c8be230..22e4fa2608 100644 --- a/platforms/chibios/drivers/audio_dac_additive.c +++ b/platforms/chibios/drivers/audio_dac_additive.c @@ -135,7 +135,7 @@ __attribute__((weak)) uint16_t dac_value_generate(void) { * timer runs with 3*AUDIO_DAC_SAMPLE_RATE; and the DAC callback * is called twice per conversion.*/ - dac_if[i] = fmod(dac_if[i], AUDIO_DAC_BUFFER_SIZE); + dac_if[i] = fmodf(dac_if[i], AUDIO_DAC_BUFFER_SIZE); // Wavetable generation/lookup uint16_t dac_i = (uint16_t)dac_if[i]; |