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
This commit is contained in:
parent
502e9e97b6
commit
86c4ec7277
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue