diff options
| author | Peter D. Gray | 2017-12-20 10:45:22 -0500 |
|---|---|---|
| committer | Damien George | 2017-12-22 14:49:31 +1100 |
| commit | 82dc5c1d8c90c45ce93bbb41292df5e420642448 (patch) | |
| tree | 1c4470995ae67baba2383c71a71e78c99195a299 /ports/stm32/sdcard.c | |
| parent | a1d85d6199c03871ccf16700743160fad64d057b (diff) | |
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.
Diffstat (limited to 'ports/stm32/sdcard.c')
| -rw-r--r-- | ports/stm32/sdcard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/sdcard.c b/ports/stm32/sdcard.c index 484426b84..a54e05011 100644 --- a/ports/stm32/sdcard.c +++ b/ports/stm32/sdcard.c @@ -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; } |
