From e063bb049070c42bffa61bcc15a019237f62ee48 Mon Sep 17 00:00:00 2001 From: Stacey Sheldon Date: Tue, 22 May 2012 00:24:16 -0400 Subject: [PATCH] bl: use new USB "cable connected" API to halt in BL BL only cares about the physical cable being connected. Use the newly provided API that matches this intent. --- flight/Bootloaders/CopterControl/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/Bootloaders/CopterControl/main.c b/flight/Bootloaders/CopterControl/main.c index 9aaa31787..77c02f18b 100644 --- a/flight/Bootloaders/CopterControl/main.c +++ b/flight/Bootloaders/CopterControl/main.c @@ -74,7 +74,7 @@ int main() { PIOS_Board_Init(); PIOS_IAP_Init(); - USB_connected = PIOS_USB_CheckAvailable(0); + USB_connected = PIOS_USB_CableConnected(0); if (PIOS_IAP_CheckRequest() == TRUE) { PIOS_DELAY_WaitmS(1000);