From 86c4ec7277ac1c2a130a9ac1a3500c8360af5c7e Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Sat, 26 Mar 2011 23:31:29 +0000 Subject: [PATCH] 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 --- firmware/target/arm/as3525/sd-as3525v2.c | 4 ++-- 1 file 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)