diff options
Diffstat (limited to 'firmware/target/arm/as3525/ata_sd_as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/ata_sd_as3525.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c index 46f52abf94..96ad8fea76 100644 --- a/firmware/target/arm/as3525/ata_sd_as3525.c +++ b/firmware/target/arm/as3525/ata_sd_as3525.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include "config.h" /* for HAVE_MULTIVOLUME & AMS_OF_SIZE */ | 27 | #include "config.h" /* for HAVE_MULTIVOLUME & AMS_OF_SIZE */ |
28 | #include "fat.h" | 28 | #include "fat.h" |
29 | #include "thread.h" | 29 | #include "thread.h" |
30 | #include "led.h" | ||
30 | #include "hotswap.h" | 31 | #include "hotswap.h" |
31 | #include "system.h" | 32 | #include "system.h" |
32 | #include "cpu.h" | 33 | #include "cpu.h" |
@@ -619,6 +620,7 @@ static int sd_transfer_sectors(IF_MV2(int drive,) unsigned long start, | |||
619 | mutex_lock(&sd_mtx); | 620 | mutex_lock(&sd_mtx); |
620 | #ifndef BOOTLOADER | 621 | #ifndef BOOTLOADER |
621 | sd_enable(true); | 622 | sd_enable(true); |
623 | led(true); | ||
622 | #endif | 624 | #endif |
623 | 625 | ||
624 | if (card_info[drive].initialized <= 0) | 626 | if (card_info[drive].initialized <= 0) |
@@ -742,6 +744,7 @@ static int sd_transfer_sectors(IF_MV2(int drive,) unsigned long start, | |||
742 | dma_release(); | 744 | dma_release(); |
743 | 745 | ||
744 | #ifndef BOOTLOADER | 746 | #ifndef BOOTLOADER |
747 | led(false); | ||
745 | sd_enable(false); | 748 | sd_enable(false); |
746 | #endif | 749 | #endif |
747 | mutex_unlock(&sd_mtx); | 750 | mutex_unlock(&sd_mtx); |