From e8942c2968bd01ae6ea8e3d661abb16fc2500e93 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Tue, 6 Sep 2022 15:52:09 +0200 Subject: [PATCH] fix for repeating debug message --- usermods/audioreactive/audio_reactive.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usermods/audioreactive/audio_reactive.h b/usermods/audioreactive/audio_reactive.h index ec693504..345baa9f 100644 --- a/usermods/audioreactive/audio_reactive.h +++ b/usermods/audioreactive/audio_reactive.h @@ -1068,7 +1068,7 @@ class AudioReactive : public Usermod { disableSoundProcessing = true; } else { #ifdef WLED_DEBUG - if ((disableSoundProcessing == true) && (audioSyncEnabled == 0)) { // we just switched to "disabled" + if ((disableSoundProcessing == true) && (audioSyncEnabled == 0) && audioSource->isInitialized()) { // we just switched to "enabled" DEBUG_PRINTLN("[AR userLoop] realtime mode ended - audio processing resumed."); DEBUG_PRINTF( " RealtimeMode = %d; RealtimeOverride = %d\n", int(realtimeMode), int(realtimeOverride)); }