From: James Sarrett Date: Thu, 11 May 2017 07:10:52 +0000 (-0700) Subject: send bus initialization bits before MMC_GO_IDLE_STATE command to initialize card... X-Git-Tag: v2.1-rc1~5^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7720246996da38841f59f2e5e36a57dec49384d;p=esp-idf send bus initialization bits before MMC_GO_IDLE_STATE command to initialize card after poweron --- diff --git a/components/driver/sdmmc_transaction.c b/components/driver/sdmmc_transaction.c index 92876f75a2..3adc9ce68e 100644 --- a/components/driver/sdmmc_transaction.c +++ b/components/driver/sdmmc_transaction.c @@ -215,6 +215,8 @@ static sdmmc_hw_cmd_t make_hw_cmd(sdmmc_command_t* cmd) res.cmd_index = cmd->opcode; if (cmd->opcode == MMC_STOP_TRANSMISSION) { res.stop_abort_cmd = 1; + } else if (cmd->opcode == MMC_GO_IDLE_STATE) { + res.send_init = 1; } else { res.wait_complete = 1; }