Fix red in 36f34089d6

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 42ad3c75d2ca35c95f609cea8984b95b5ebd9a60
Author: Solomon Peachy <[email protected]>
Date:   Sat Mar 28 12:41:43 2026 -0400

    Fix red in  36f34089d6
    
    Can't reference settings in bootloader builds
    
    Change-Id: I471c3ca61ec4c93d38317278b79b973192aa28bb

diff --git a/firmware/sound.c b/firmware/sound.c
index 07a91878d8..06f6906b55 100644
--- a/firmware/sound.c
+++ b/firmware/sound.c
@@ -312,6 +312,7 @@ void sound_set_volume(int value)
     if (!audio_is_initialized)
         return;
 
+#ifndef BOOTLOADER
     /* Apply limits */
     const int min_vol = sound_min(SOUND_VOLUME);
     const int max_vol = sound_max(SOUND_VOLUME);
@@ -322,7 +323,6 @@ void sound_set_volume(int value)
     if (value > global_settings.volume_limit)
         value = global_settings.volume_limit;
 
-#ifndef BOOTLOADER
     global_status.volume = value;
 #endif
 
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.