1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

usb cdc: attach telemetry to CDC rather than HID

This commit is contained in:
Stacey Sheldon 2011-09-10 20:14:09 -04:00
parent 59cb489e01
commit 617a30c07c

View File

@ -311,7 +311,7 @@ static void telemetryRxTask(void *parameters)
#if defined(PIOS_INCLUDE_USB_HID)
// Determine input port (USB takes priority over telemetry port)
if (PIOS_USB_HID_CheckAvailable(0)) {
inputPort = PIOS_COM_TELEM_USB_HID;
inputPort = PIOS_COM_TELEM_USB_CDC;
} else
#endif /* PIOS_INCLUDE_USB_HID */
{
@ -348,7 +348,7 @@ static int32_t transmitData(uint8_t * data, int32_t length)
// Determine input port (USB takes priority over telemetry port)
#if defined(PIOS_INCLUDE_USB_HID)
if (PIOS_USB_HID_CheckAvailable(0)) {
outputPort = PIOS_COM_TELEM_USB_HID;
outputPort = PIOS_COM_TELEM_USB_CDC;
} else
#endif /* PIOS_INCLUDE_USB_HID */
{