Remove needless precision in additive DAC sample generation (#21498)

This commit is contained in:
Nebuleon 2023-07-27 00:06:14 -04:00 committed by GitHub
parent 9bc85ff5af
commit e971ce290c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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];