From 3e81cdf96f7355d18c281bc544c2c44a9e60cc2f Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 18 Aug 2020 18:30:59 +0200 Subject: [PATCH] undef USE_SDCARD_* when no USE_SDCARD --- src/main/target/common_post.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/target/common_post.h b/src/main/target/common_post.h index c268184d05..1282e7664c 100644 --- a/src/main/target/common_post.h +++ b/src/main/target/common_post.h @@ -202,6 +202,11 @@ #undef USE_USB_MSC #endif +#if !defined(USE_SDCARD) +#undef USE_SDCARD_SDIO +#undef USE_SDCARD_SPI +#endif + #if !defined(USE_VCP) #undef USE_USB_CDC_HID #undef USE_USB_MSC