We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 960820b commit afc8c85Copy full SHA for afc8c85
1 file changed
src/main/drivers/usb_msc_h7xx.c
@@ -87,10 +87,8 @@ uint8_t mscStart(void)
87
switch (blackboxConfig()->device) {
88
#ifdef USE_SDCARD
89
case BLACKBOX_DEVICE_SDCARD:
90
-#ifdef USE_SDCARD_SDIO
+#if defined(USE_SDCARD_SDIO) || defined(USE_SDCARD_SPI)
91
USBD_MSC_RegisterStorage(&USBD_Device, &USBD_MSC_MICRO_SDIO_fops);
92
-#elif defined(USE_SDCARD_SPI)
93
- USBD_MSC_RegisterStorage(&USBD_Device, &USBD_MSC_MICRO_SD_SPI_fops);
94
#else
95
return 1;
96
#endif
0 commit comments