mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
fix sd can't usage when mult-block receive errro
This commit is contained in:
committed by
Petro Karashchenko
parent
fcc48c2254
commit
ee0dc87059
@@ -1280,6 +1280,10 @@ static ssize_t mmcsd_read(FAR struct inode *inode, unsigned char *buffer,
|
||||
if (mmcsd_recvblock(slot, buffer, SECTORSIZE(slot)) != 0)
|
||||
{
|
||||
ferr("ERROR: Failed: to receive the block\n");
|
||||
|
||||
/* Send CMD12: Stops transmission */
|
||||
|
||||
response = mmcsd_sendcmd(slot, &g_cmd12, 0);
|
||||
goto errout_with_eio;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user