summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-04-09 07:57:53 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-04-09 07:57:53 +0000
commit59e37cbccb315716ad6074ed01fd5a72fa6a1b79 (patch)
tree8d428c49880237b6d89f6fc0d4335f6df23b8ecb /firmware
parent67a4e9befcd13750dabf53418682d277b8a351e7 (diff)
downloadrockbox-59e37cbccb315716ad6074ed01fd5a72fa6a1b79.tar.gz
rockbox-59e37cbccb315716ad6074ed01fd5a72fa6a1b79.tar.bz2
rockbox-59e37cbccb315716ad6074ed01fd5a72fa6a1b79.zip
AMS sd: use defines instead of direct values for drive number
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29696 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/sd-as3525.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525.c b/firmware/target/arm/as3525/sd-as3525.c
index a2d20c36fa..1ebe008822 100644
--- a/firmware/target/arm/as3525/sd-as3525.c
+++ b/firmware/target/arm/as3525/sd-as3525.c
@@ -594,12 +594,12 @@ int sd_init(void)
#ifdef HAVE_HOTSWAP
bool sd_removable(IF_MD_NONVOID(int drive))
{
- return (drive==1);
+ return (drive == SD_SLOT_AS3525);
}
bool sd_present(IF_MD_NONVOID(int drive))
{
- return (drive == 0) ? true : card_detect_target();
+ return (drive == INTERNAL_AS3525) ? true : card_detect_target();
}
#endif /* HAVE_HOTSWAP */