mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
mmcsd: Fix mmc card error but system can not catch it
Signed-off-by: anjianjun <anjianjun@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
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)
|
||||
{
|
||||
priv->type = MMCSD_CARDTYPE_UNKNOWN;
|
||||
ferr("ERROR: Failed to identify card\n");
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user