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.
This commit is contained in:
parent
a1d85d6199
commit
82dc5c1d8c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user