mmcsd: Fix mmc card error but system can not catch it
Signed-off-by: anjianjun <anjianjun@xiaomi.com>
This commit is contained in:
parent
fc030d846c
commit
75ec6dffb6
@ -3266,6 +3266,7 @@ static int mmcsd_cardidentify(FAR struct mmcsd_state_s *priv)
|
|||||||
|
|
||||||
if (elapsed >= TICK_PER_SEC || priv->type == MMCSD_CARDTYPE_UNKNOWN)
|
if (elapsed >= TICK_PER_SEC || priv->type == MMCSD_CARDTYPE_UNKNOWN)
|
||||||
{
|
{
|
||||||
|
priv->type = MMCSD_CARDTYPE_UNKNOWN;
|
||||||
ferr("ERROR: Failed to identify card\n");
|
ferr("ERROR: Failed to identify card\n");
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user