From 89c27cfcca0279e01842a2754b1b1ad4dd7cbaa1 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Fri, 14 Aug 2015 11:45:09 +0200 Subject: [PATCH] Fixes #2704 --- radio/src/functions.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/radio/src/functions.cpp b/radio/src/functions.cpp index 47923651d..ccc03740b 100644 --- a/radio/src/functions.cpp +++ b/radio/src/functions.cpp @@ -489,9 +489,11 @@ void evalFunctions() } case FUNC_BACKGND_MUSIC: - newActiveFunctions |= (1 << FUNCTION_BACKGND_MUSIC); - if (!IS_PLAYING(PLAY_INDEX)) { - playCustomFunctionFile(cfn, PLAY_INDEX); + if (!(newActiveFunctions & (1 << FUNCTION_BACKGND_MUSIC))) { + newActiveFunctions |= (1 << FUNCTION_BACKGND_MUSIC); + if (!IS_PLAYING(PLAY_INDEX)) { + playCustomFunctionFile(cfn, PLAY_INDEX); + } } break;