5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-02 22:18:28 -04:00

AP_Bootloader: change to using serusbcfg1

This commit is contained in:
Siddharth Purohit 2019-04-10 09:16:18 +05:30 committed by Andrew Tridgell
parent dcf17e5bc2
commit eabb93f842

View File

@ -354,12 +354,12 @@ void init_uarts(void)
{
#if HAL_USE_SERIAL_USB == TRUE
sduObjectInit(&SDU1);
sduStart(&SDU1, &serusbcfg);
sduStart(&SDU1, &serusbcfg1);
usbDisconnectBus(serusbcfg.usbp);
usbDisconnectBus(serusbcfg1.usbp);
chThdSleepMilliseconds(1000);
usbStart(serusbcfg.usbp, &usbcfg);
usbConnectBus(serusbcfg.usbp);
usbStart(serusbcfg1.usbp, &usbcfg);
usbConnectBus(serusbcfg1.usbp);
#endif
#if HAL_USE_SERIAL == TRUE