diff --git a/libraries/AP_HAL_ChibiOS/sdcard.cpp b/libraries/AP_HAL_ChibiOS/sdcard.cpp index 3eeb2c113c..ed04a069ed 100644 --- a/libraries/AP_HAL_ChibiOS/sdcard.cpp +++ b/libraries/AP_HAL_ChibiOS/sdcard.cpp @@ -164,9 +164,11 @@ void sdcard_stop(void) void sdcard_retry(void) { +#ifdef USE_POSIX if (!sdcard_running) { sdcard_init(); } +#endif } #if HAL_USE_MMC_SPI