From da0b028b74c395caaec4e4afd68777b71817aa45 Mon Sep 17 00:00:00 2001 From: tomcombriat Date: Wed, 3 Jan 2024 15:40:26 +0100 Subject: [PATCH] Corrected important type for STM32 (Maple core) --- MozziGuts_impl_STM32.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MozziGuts_impl_STM32.hpp b/MozziGuts_impl_STM32.hpp index 35579b6be..3c5969ba0 100644 --- a/MozziGuts_impl_STM32.hpp +++ b/MozziGuts_impl_STM32.hpp @@ -63,7 +63,7 @@ void setupFastAnalogRead(int8_t speed) { //// BEGIN AUDIO OUTPUT code /////// -#if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_EXERNAL_TIMED) +#if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_EXTERNAL_TIMED) HardwareTimer audio_update_timer(MOZZI_AUDIO_UPDATE_TIMER); #elif MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_PWM, MOZZI_OUTPUT_2PIN_PWM) HardwareTimer audio_update_timer(MOZZI_AUDIO_UPDATE_TIMER); @@ -83,7 +83,7 @@ inline void audioOutput(const AudioOutput f) { #endif static void startAudio() { -#if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_PWM, MOZZI_OUTPUT_2PIN_PWM, MOZZI_OUTPUT_EXERNAL_TIMED) +#if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_PWM, MOZZI_OUTPUT_2PIN_PWM, MOZZI_OUTPUT_EXTERNAL_TIMED) audio_update_timer.pause(); //audio_update_timer.setPeriod(1000000UL / AUDIO_RATE); // Manually calculate prescaler and overflow instead of using setPeriod, to avoid rounding errors @@ -132,7 +132,7 @@ static void startAudio() { } void stopMozzi() { -#if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_PWM, MOZZI_OUTPUT_2PIN_PWM, MOZZI_OUTPUT_EXERNAL_TIMED) +#if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_PWM, MOZZI_OUTPUT_2PIN_PWM, MOZZI_OUTPUT_EXTERNAL_TIMED) audio_update_timer.pause(); #endif }