1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

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.
This commit is contained in:
Stacey Sheldon 2012-05-22 00:24:16 -04:00
parent dab400c80d
commit e063bb0490

View File

@ -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);