stm32: Use corrected capitalization of HAL_SD_CardStateTypedef.

It was originally TypeDef.  STM32L4 only supports Typedef and F4/F7 have
legacy macros in stm32_hal_legacy.h to support both.
pull/1/head
Peter D. Gray 2017-12-20 10:45:22 -05:00 committed by Damien George
parent a1d85d6199
commit 82dc5c1d8c
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ STATIC HAL_StatusTypeDef sdcard_wait_finished(SD_HandleTypeDef *sd, uint32_t tim
}
// Wait for SD card to complete the operation
for (;;) {
HAL_SD_CardStateTypeDef state = HAL_SD_GetCardState(sd);
HAL_SD_CardStateTypedef state = HAL_SD_GetCardState(sd);
if (state == HAL_SD_CARD_TRANSFER) {
return HAL_OK;
}