From bed8cc750baca036d43b642f73d602227df79eee Mon Sep 17 00:00:00 2001 From: Kaleidio <82226641+Kaleidio@users.noreply.github.com> Date: Tue, 9 Nov 2021 13:45:44 +0000 Subject: [PATCH] Fix compile error with config.alarm_en and config.auto_reload These values could not convert from int as they were typedef'd --- src/Audio/AudioOutput.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Audio/AudioOutput.h b/src/Audio/AudioOutput.h index 0cb823c..45c5bed 100644 --- a/src/Audio/AudioOutput.h +++ b/src/Audio/AudioOutput.h @@ -27,8 +27,8 @@ class AudioOutput { this->audioSystem = &audioSystem; timer_config_t config; - config.alarm_en = 1; - config.auto_reload = 1; + config.alarm_en = (timer_alarm_t)1; + config.auto_reload = (timer_autoreload_t)1; config.counter_dir = TIMER_COUNT_UP; config.divider = 16; config.intr_type = TIMER_INTR_LEVEL;