diff options
Diffstat (limited to 'os/hal/src/sdc.c')
-rw-r--r-- | os/hal/src/sdc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/os/hal/src/sdc.c b/os/hal/src/sdc.c index 01719c698..988efd1e7 100644 --- a/os/hal/src/sdc.c +++ b/os/hal/src/sdc.c @@ -223,6 +223,9 @@ bool sdcConnect(SDCDriver *sdcp) { else
#endif /* SDC_MMC_SUPPORT */
sdcp->cardmode = SDC_MODE_CARDTYPE_SDV11;
+
+ /* Reset error flag illegal command.*/
+ sdc_lld_send_cmd_none(sdcp, MMCSD_CMD_GO_IDLE_STATE, 0);
}
#if SDC_MMC_SUPPORT
|