From 753064fccf270643edc8d60e46886e327b099c49 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Thu, 18 Jun 2009 23:03:10 +0000 Subject: 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 --- firmware/target/arm/as3525/ata_sd_as3525.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/target') diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c index ac4a264172..0556cc0eb4 100644 --- a/firmware/target/arm/as3525/ata_sd_as3525.c +++ b/firmware/target/arm/as3525/ata_sd_as3525.c @@ -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) -- cgit v1.2.3