diff options
| author | Rami Ali | 2016-12-06 11:29:46 +1100 |
|---|---|---|
| committer | Damien George | 2016-12-07 17:31:05 +1100 |
| commit | 821863751f942f54c140f80d5a92ad7046112331 (patch) | |
| tree | 7b03b388bf7adb2c8d00253a2a9b4c2487709060 | |
| parent | e1c6ed634f4387a6c9d7e132ed7d0bb245a9618a (diff) | |
stmhal: Port of f4 hal commit 09de030 to updated f7 hal.
| -rw-r--r-- | stmhal/hal/f7/src/stm32f7xx_hal_sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/hal/f7/src/stm32f7xx_hal_sd.c b/stmhal/hal/f7/src/stm32f7xx_hal_sd.c index 8a0bffbe1..2e197364d 100644 --- a/stmhal/hal/f7/src/stm32f7xx_hal_sd.c +++ b/stmhal/hal/f7/src/stm32f7xx_hal_sd.c @@ -1581,7 +1581,7 @@ HAL_SD_ErrorTypedef HAL_SD_Get_CardInfo(SD_HandleTypeDef *hsd, HAL_SD_CardInfoTy /* Byte 10 */ tmp = (uint8_t)((hsd->CSD[2] & 0x0000FF00U) >> 8); - pCardInfo->CardCapacity = (uint64_t)(((uint64_t)pCardInfo->SD_csd.DeviceSize + 1) * 512 * 1024); + pCardInfo->CardCapacity = (uint64_t)(((uint64_t)pCardInfo->SD_csd.DeviceSize + 1ULL) * 512 * 1024); pCardInfo->CardBlockSize = 512; } else |
