Index: firmware/target/arm/as3525/ata_sd_as3525.c
===================================================================
--- firmware/target/arm/as3525/ata_sd_as3525.c (revision 21692)
+++ firmware/target/arm/as3525/ata_sd_as3525.c (working copy)
@@ -27,6 +27,7 @@
#include "config.h" /* for HAVE_MULTIVOLUME & AMS_OF_SIZE */
#include "fat.h"
#include "thread.h"
+#include "led.h"
#include "hotswap.h"
#include "system.h"
#include "cpu.h"
@@ -127,6 +128,11 @@

static inline void mci_delay(void) { int i = 0xffff; while(i--) ; }

+static void sd_led(bool onoff)
+{
+ led(onoff);
+}
+
#ifdef HAVE_HOTSWAP
#if defined(SANSA_E200V2) || defined(SANSA_FUZE) || defined(SANSA_C200V2)
static int sd1_oneshot_callback(struct timeout *tmo)
@@ -619,6 +625,7 @@
mutex_lock(&sd_mtx);
#ifndef BOOTLOADER
sd_enable(true);
+ sd_led(true);
#endif

if (card_info[drive].initialized <= 0)
@@ -742,6 +749,7 @@
dma_release();

#ifndef BOOTLOADER
+ sd_led(false);
sd_enable(false);
#endif
mutex_unlock(&sd_mtx);