HAL_ChibiOS: fixed build of sdcard

This commit is contained in:
Andrew Tridgell 2018-12-31 09:36:09 +11:00 committed by Randy Mackay
parent a03b569d43
commit 9ed3e9eec5
1 changed files with 2 additions and 0 deletions

View File

@ -164,9 +164,11 @@ void sdcard_stop(void)
void sdcard_retry(void) void sdcard_retry(void)
{ {
#ifdef USE_POSIX
if (!sdcard_running) { if (!sdcard_running) {
sdcard_init(); sdcard_init();
} }
#endif
} }
#if HAL_USE_MMC_SPI #if HAL_USE_MMC_SPI