mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-11 16:37:45 -04:00
Fix red in 36f34089d6
Can't reference settings in bootloader builds Change-Id: I471c3ca61ec4c93d38317278b79b973192aa28bb
This commit is contained in:
parent
36f34089d6
commit
42ad3c75d2
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue