diff options
author | Krzysztof Blazewicz <krzysztof.blazewicz@uxeon.com> | 2016-09-08 18:23:00 +0200 |
---|---|---|
committer | Krzysztof Blazewicz <krzysztof.blazewicz@uxeon.com> | 2016-11-16 12:43:27 +0100 |
commit | 6a8f6c119c249e52fbc4d4fd55b2bec65544c811 (patch) | |
tree | f3f2dc0734cd900a1e2b49ac026c828ae4b9a063 | |
parent | e2b48221892ca5445d9e255753e4ccfcd07a8171 (diff) |
stmhal/hal/sd: reapply HAL commit 09de030 for f4
-rw-r--r-- | stmhal/hal/f4/src/stm32f4xx_hal_sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/hal/f4/src/stm32f4xx_hal_sd.c b/stmhal/hal/f4/src/stm32f4xx_hal_sd.c index 1eb896e1b..c5912f0cc 100644 --- a/stmhal/hal/f4/src/stm32f4xx_hal_sd.c +++ b/stmhal/hal/f4/src/stm32f4xx_hal_sd.c @@ -1668,7 +1668,7 @@ HAL_SD_ErrorTypedef HAL_SD_Get_CardInfo(SD_HandleTypeDef *hsd, HAL_SD_CardInfoTy /* Byte 10 */
tmp = (uint8_t)((hsd->CSD[2U] & 0x0000FF00U) >> 8U);
- pCardInfo->CardCapacity = (uint64_t)((((uint64_t)pCardInfo->SD_csd.DeviceSize + 1U)) * 512U * 1024U);
+ pCardInfo->CardCapacity = (uint64_t)((((uint64_t)pCardInfo->SD_csd.DeviceSize + 1ULL)) * 512U * 1024U);
pCardInfo->CardBlockSize = 512U;
}
else
|