mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Sansa AMS: display the virtual led icon on disk transfers
Sansa PP: directly use led() function, remove useless sd_led() Thanks to mc2739 (Michael Chicoine) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21693 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cabd45086a
commit
03fe562a95
2 changed files with 8 additions and 10 deletions
|
|
@ -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"
|
||||
|
|
@ -619,6 +620,7 @@ static int sd_transfer_sectors(IF_MV2(int drive,) unsigned long start,
|
|||
mutex_lock(&sd_mtx);
|
||||
#ifndef BOOTLOADER
|
||||
sd_enable(true);
|
||||
led(true);
|
||||
#endif
|
||||
|
||||
if (card_info[drive].initialized <= 0)
|
||||
|
|
@ -742,6 +744,7 @@ static int sd_transfer_sectors(IF_MV2(int drive,) unsigned long start,
|
|||
dma_release();
|
||||
|
||||
#ifndef BOOTLOADER
|
||||
led(false);
|
||||
sd_enable(false);
|
||||
#endif
|
||||
mutex_unlock(&sd_mtx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue