Can't reference settings in bootloader builds

Change-Id: I471c3ca61ec4c93d38317278b79b973192aa28bb
This commit is contained in:
Solomon Peachy 2026-03-28 12:41:43 -04:00
parent 36f34089d6
commit 42ad3c75d2

View file

@ -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