Skip to content

Commit

Permalink
🚑️ Fix SDIO Init bootloop on STM32F1 (MarlinFirmware#24275)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot authored and LCh-77 committed Jul 19, 2022
1 parent d882891 commit 6912a34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Marlin/src/HAL/STM32/sdio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6912a34

Please sign in to comment.