From eabb93f84253349fb44b81c3ea029b8f03968605 Mon Sep 17 00:00:00 2001 From: Siddharth Purohit Date: Wed, 10 Apr 2019 09:16:18 +0530 Subject: [PATCH] AP_Bootloader: change to using serusbcfg1 --- Tools/AP_Bootloader/support.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tools/AP_Bootloader/support.cpp b/Tools/AP_Bootloader/support.cpp index 2959ef2ba5..fbaa8701bb 100644 --- a/Tools/AP_Bootloader/support.cpp +++ b/Tools/AP_Bootloader/support.cpp @@ -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