From c76fbf7162e598895b1308f1855b0f70629968fc Mon Sep 17 00:00:00 2001 From: Jörg Hohensohn Date: Sat, 19 Feb 2005 00:34:15 +0000 Subject: Ondio: disk indication in the status bar, to compensate for lacking LED git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6012 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/ata_mmc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/drivers/ata_mmc.c') diff --git a/firmware/drivers/ata_mmc.c b/firmware/drivers/ata_mmc.c index 7ba6dac296..7139f0394f 100644 --- a/firmware/drivers/ata_mmc.c +++ b/firmware/drivers/ata_mmc.c @@ -635,6 +635,7 @@ int ata_read_sectors(IF_MV2(int drive,) addr = start * SECTOR_SIZE; mutex_lock(&mmc_mutex); + led(true); #ifdef HAVE_MULTIVOLUME card = &card_info[drive]; ret = select_card(drive); @@ -681,6 +682,7 @@ int ata_read_sectors(IF_MV2(int drive,) } deselect_card(); + led(false); mutex_unlock(&mmc_mutex); /* only flush if reading went ok */ @@ -706,6 +708,7 @@ int ata_write_sectors(IF_MV2(int drive,) addr = start * SECTOR_SIZE; mutex_lock(&mmc_mutex); + led(true); #ifdef HAVE_MULTIVOLUME card = &card_info[drive]; ret = select_card(drive); @@ -750,6 +753,7 @@ int ata_write_sectors(IF_MV2(int drive,) } deselect_card(); + led(false); mutex_unlock(&mmc_mutex); /* only flush if writing went ok */ -- cgit v1.2.3