stmhal: Port of f4 hal commit 09de030 to f7 hal

This commit is contained in:
Dave Hylands 2015-08-01 15:20:25 -07:00 committed by Damien George
parent af9d885f8c
commit 28e51c9eb1
1 changed files with 1 additions and 1 deletions

View File

@ -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