mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 00:58:37 -04:00
AP_HAL_ChibiOS: do not init usb in sdcard_init
This commit is contained in:
parent
5d5fdbb44d
commit
a05d7ae645
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user