Skip to content

Commit 338f600

Browse files
committed
fix: restore SD_CLK_ENABLE
Wrong endif preprocessor placement when introducing new SD pins management. Fixes #60 Signed-off-by: Frederic Pillon <[email protected]>
1 parent c000dfe commit 338f600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bsp_sd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ __weak void BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params)
515515
pinmap_pinout(SD_PinNames.pin_d0dir, PinMap_SD_D0DIR);
516516
pinmap_pinout(SD_PinNames.pin_d123dir, PinMap_SD_D123DIR);
517517
}
518+
#endif
518519
#endif
519520
/* Enable SD clock */
520521
#if defined(SDMMC1) && defined(SDMMC2)
@@ -527,7 +528,6 @@ __weak void BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params)
527528
UNUSED(hsd);
528529
SD_CLK_ENABLE();
529530
#endif
530-
#endif
531531
}
532532

533533
/**

0 commit comments

Comments
 (0)