Skip to content

Commit afc8c85

Browse files
authored
fix(msc): align H7 SPI SD MSC fops with EF symbol name (#1242)
Closes #1241
1 parent 960820b commit afc8c85

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/drivers/usb_msc_h7xx.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,8 @@ uint8_t mscStart(void)
8787
switch (blackboxConfig()->device) {
8888
#ifdef USE_SDCARD
8989
case BLACKBOX_DEVICE_SDCARD:
90-
#ifdef USE_SDCARD_SDIO
90+
#if defined(USE_SDCARD_SDIO) || defined(USE_SDCARD_SPI)
9191
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);
9492
#else
9593
return 1;
9694
#endif

0 commit comments

Comments
 (0)