diff options
| author | Dave Hylands | 2015-08-01 15:20:25 -0700 |
|---|---|---|
| committer | Damien George | 2015-08-03 00:49:36 +0100 |
| commit | 28e51c9eb1f633bb4f0a17e964ef7791d54c913d (patch) | |
| tree | 2ca3f19dd61a804e57f104cea9277dee650ca01b /stmhal | |
| parent | af9d885f8cbbe454a8bf655a08c33c775c4838dd (diff) | |
stmhal: Port of f4 hal commit 09de030 to f7 hal
Diffstat (limited to 'stmhal')
| -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 4aa28dbfd..d7ea7d01f 100644 --- a/stmhal/hal/f7/src/stm32f7xx_hal_sd.c +++ b/stmhal/hal/f7/src/stm32f7xx_hal_sd.c @@ -1557,7 +1557,7 @@ HAL_SD_ErrorTypedef HAL_SD_Get_CardInfo(SD_HandleTypeDef *hsd, HAL_SD_CardInfoTy /* Byte 10 */ tmp = (uint8_t)((hsd->CSD[2] & 0x0000FF00) >> 8); - pCardInfo->CardCapacity = ((pCardInfo->SD_csd.DeviceSize + 1)) * 512 * 1024; + pCardInfo->CardCapacity = ((pCardInfo->SD_csd.DeviceSize + 1ULL)) * 512 * 1024; pCardInfo->CardBlockSize = 512; } else |
