Sansa AMS: fix yellow for models with buttonlight & without multivolume

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21343 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2009-06-18 23:03:10 +00:00
parent e2ec2fe391
commit 753064fccf

View file

@ -827,7 +827,7 @@ void sd_enable(bool on)
{
/* buttonlight AMSes need a bit of special handling for the buttonlight here,
* due to the dual mapping of GPIOD and XPD */
#ifdef HAVE_BUTTON_LIGHT
#if defined(HAVE_BUTTON_LIGHT) && defined(HAVE_MULTIVOLUME)
extern int buttonlight_is_on;
#endif
if (sd_enabled == on)