🚑️ Fix SDIO Init bootloop on STM32F1 (#24275)
This commit is contained in:
parent
833ea4ec29
commit
c9b97b8d64
|
@ -200,7 +200,8 @@ static uint32_t clock_to_divider(uint32_t clk) {
|
|||
|
||||
bool SDIO_Init() {
|
||||
HAL_StatusTypeDef sd_state = HAL_OK;
|
||||
HAL_SD_DeInit(&hsd);
|
||||
if (hsd.Instance == SDIO)
|
||||
HAL_SD_DeInit(&hsd);
|
||||
|
||||
/* HAL SD initialization */
|
||||
hsd.Instance = SDIO;
|
||||
|
|
Loading…
Reference in a new issue