AP_HAL_ChibiOS: do not init usb in sdcard_init

This commit is contained in:
bugobliterator 2023-02-16 13:31:14 +11:00 committed by Andrew Tridgell
parent 5d5fdbb44d
commit a05d7ae645

View File

@ -136,11 +136,6 @@ bool sdcard_init()
&USBD2, &USBD2,
#endif #endif
(BaseBlockDevice*)&SDCD1, blkbuf, txbuf, NULL, NULL, block_filesys_access, free_filesys_access); (BaseBlockDevice*)&SDCD1, blkbuf, txbuf, NULL, NULL, block_filesys_access, free_filesys_access);
usbDisconnectBus(serusbcfg1.usbp);
usbStop(serusbcfg1.usbp);
chThdSleep(chTimeUS2I(1500));
usbStart(serusbcfg1.usbp, &usbcfg);
usbConnectBus(serusbcfg1.usbp);
} }
#endif #endif
sdcard_running = true; sdcard_running = true;