Skip to content

Commit b7935b8

Browse files
committed
[HAL][SDMMC] Support SD card V1 within HAL_SD
1 parent c022efb commit b7935b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/stm32h7xx_hal_sd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3149,7 +3149,7 @@ static uint32_t SD_PowerON(SD_HandleTypeDef *hsd)
31493149

31503150
/* CMD8: SEND_IF_COND: Command available only on V2.0 cards */
31513151
errorstate = SDMMC_CmdOperCond(hsd->Instance);
3152-
if (errorstate == SDMMC_ERROR_TIMEOUT) /* No response to CMD8 */
3152+
if (errorstate == SDMMC_ERROR_CMD_RSP_TIMEOUT) /* No response to CMD8 */
31533153
{
31543154
hsd->SdCard.CardVersion = CARD_V1_X;
31553155
/* CMD0: GO_IDLE_STATE */

0 commit comments

Comments
 (0)