Skip to content

Commit

Permalink
Fix build with disabled audio
Browse files Browse the repository at this point in the history
  • Loading branch information
DrA1ex committed Feb 29, 2024
1 parent b7694c4 commit 4da9d14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 4da9d14

Please sign in to comment.