summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-03-26 23:31:29 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-03-26 23:31:29 +0000
commit86c4ec7277ac1c2a130a9ac1a3500c8360af5c7e (patch)
treeb2bdf673d54dbaa39bd8bb6953fb204651e935ec /firmware
parent502e9e97b6c91999e6d0d92802e59d13d8ffc9de (diff)
downloadrockbox-86c4ec7277ac1c2a130a9ac1a3500c8360af5c7e.tar.gz
rockbox-86c4ec7277ac1c2a130a9ac1a3500c8360af5c7e.tar.bz2
rockbox-86c4ec7277ac1c2a130a9ac1a3500c8360af5c7e.zip
AMSv2 SD: use INTERNAL_AS3525 and SD_SLOT_AS3525 defines instead of a direct value
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29652 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index 45b7b69be5..4338855931 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -1071,12 +1071,12 @@ tCardInfo *card_get_info_target(int card_no)
#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();
}
static int sd1_oneshot_callback(struct timeout *tmo)