diff --git a/os/hal/src/mmc_spi.c b/os/hal/src/mmc_spi.c index 3c3a8c177..d935af8ab 100644 --- a/os/hal/src/mmc_spi.c +++ b/os/hal/src/mmc_spi.c @@ -146,7 +146,7 @@ static void wait(MMCDriver *mmcp) { for (i = 0; i < 16; i++) { spiReceive(mmcp->spip, 1, buf); if (buf[0] == 0xFF) - break; + return; } /* Looks like it is a long wait.*/ while (TRUE) { diff --git a/readme.txt b/readme.txt index 596160227..b964eea70 100644 --- a/readme.txt +++ b/readme.txt @@ -79,6 +79,8 @@ ***************************************************************************** *** 2.4.1 *** +- FIX: Fixed MMC over SPI driver performs an unnecessary SPI read (bug + 3486930). - FIX: Fixed Realtime counter initialization in STM32 HALs (bug 3485500). - FIX: Fixed PPC port broken when CH_DBG_SYSTEM_STATE_CHECK is activated (bug 3485667).