Skip to content

Commit 6a8f6c1

Browse files
author
Krzysztof Blazewicz
committed
stmhal/hal/sd: reapply HAL commit 09de030 for f4
1 parent e2b4822 commit 6a8f6c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stmhal/hal/f4/src/stm32f4xx_hal_sd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ HAL_SD_ErrorTypedef HAL_SD_Get_CardInfo(SD_HandleTypeDef *hsd, HAL_SD_CardInfoTy
16681668
/* Byte 10 */
16691669
tmp = (uint8_t)((hsd->CSD[2U] & 0x0000FF00U) >> 8U);
16701670

1671-
pCardInfo->CardCapacity = (uint64_t)((((uint64_t)pCardInfo->SD_csd.DeviceSize + 1U)) * 512U * 1024U);
1671+
pCardInfo->CardCapacity = (uint64_t)((((uint64_t)pCardInfo->SD_csd.DeviceSize + 1ULL)) * 512U * 1024U);
16721672
pCardInfo->CardBlockSize = 512U;
16731673
}
16741674
else

0 commit comments

Comments
 (0)