mirror of
https://github.com/apache/nuttx.git
synced 2026-10-12 16:50:21 +00:00
MMCSD_SDIO: Only wait for card ejected if card detection is supported
This commit is contained in:
parent
3b9bcd57ba
commit
c482437325
1 changed files with 2 additions and 0 deletions
|
|
@ -3050,9 +3050,11 @@ static int mmcsd_probe(FAR struct mmcsd_state_s *priv)
|
|||
finfo("Capacity: %lu Kbytes\n", (unsigned long)(priv->capacity / 1024));
|
||||
priv->mediachanged = true;
|
||||
|
||||
#ifdef CONFIG_MMCSD_HAVECARDDETECT
|
||||
/* Set up to receive asynchronous, media removal events */
|
||||
|
||||
SDIO_CALLBACKENABLE(priv->dev, SDIOMEDIA_EJECTED);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* REVISIT: There is a problem here. If mmcsd_initialize() returns a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue