From 4da9d14dd7db93e455fca510a47a5b3df5767c4c Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 29 Feb 2024 19:21:29 +0500 Subject: [PATCH] Fix build with disabled audio --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index a3fa1fe..de3f699 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -237,9 +237,11 @@ void render() { ColorEffects.call(led, palette, preset, app.config.gamma); BrightnessEffects.call(led, preset); +#if AUDIO == ENABLED if (!audio_applied && audio_cfg.enabled) { - AUDIO_FN(AudioEffects.call(led, app.signal_provider(), audio_cfg.min, audio_cfg.max)); + AudioEffects.call(led, app.signal_provider(), audio_cfg.min, audio_cfg.max); } +#endif } void calibration() {