diff --git a/os/hal/src/mmc_spi.c b/os/hal/src/mmc_spi.c index 7d5280dbe..0a1c310c7 100644 --- a/os/hal/src/mmc_spi.c +++ b/os/hal/src/mmc_spi.c @@ -402,6 +402,7 @@ void mmcStop(MMCDriver *mmcp) { bool_t mmcConnect(MMCDriver *mmcp) { unsigned i; bool_t result; + uint8_t r3[4]; chDbgCheck(mmcp != NULL, "mmcConnect"); @@ -430,10 +431,9 @@ bool_t mmcConnect(MMCDriver *mmcp) { * by ElmChan. * * */ - uint8_t r3[4]; - if(send_command_R3(mmcp, MMC_CMDINTERFACE_CONDITION, 0x01AA, r3) != 0x05){ + if(send_command_R3(mmcp, MMC_CMDINTERFACE_CONDITION, 0x01AA, r3) != 0x05) { - /* Switch to SDHC mode */ + /* Switch to SDHC mode.*/ i = 0; while (TRUE) { if ((send_command_R1(mmcp, MMC_CMDAPP, 0) == 0x01) && diff --git a/readme.txt b/readme.txt index a5f89680e..15aab59f1 100644 --- a/readme.txt +++ b/readme.txt @@ -79,6 +79,8 @@ ***************************************************************************** *** 2.4.3 *** +- FIX: Fixed mmc_spi.c won't compile due to misplaced declaration (bug + 3570035). - FIX: Fixed GPIO glitch during PAL initialization (bug 3569347). - FIX: Fixed STM32F1x rtc_lld_init glitches rtc on hard reset (bug 3567597). - FIX: Fixed STM8L, cosmic compiler: c_lreg not saved (bug 3566342).