mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 23:18:28 -04:00
AP_Bootloader: change to using serusbcfg1
This commit is contained in:
parent
dcf17e5bc2
commit
eabb93f842
@ -354,12 +354,12 @@ void init_uarts(void)
|
|||||||
{
|
{
|
||||||
#if HAL_USE_SERIAL_USB == TRUE
|
#if HAL_USE_SERIAL_USB == TRUE
|
||||||
sduObjectInit(&SDU1);
|
sduObjectInit(&SDU1);
|
||||||
sduStart(&SDU1, &serusbcfg);
|
sduStart(&SDU1, &serusbcfg1);
|
||||||
|
|
||||||
usbDisconnectBus(serusbcfg.usbp);
|
usbDisconnectBus(serusbcfg1.usbp);
|
||||||
chThdSleepMilliseconds(1000);
|
chThdSleepMilliseconds(1000);
|
||||||
usbStart(serusbcfg.usbp, &usbcfg);
|
usbStart(serusbcfg1.usbp, &usbcfg);
|
||||||
usbConnectBus(serusbcfg.usbp);
|
usbConnectBus(serusbcfg1.usbp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAL_USE_SERIAL == TRUE
|
#if HAL_USE_SERIAL == TRUE
|
||||||
|
Loading…
Reference in New Issue
Block a user