diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-05-21 20:48:57 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-05-21 20:48:57 +0000 |
commit | 5ec9d04bcaa0f48098441f36dd6d048ff32ecb99 (patch) | |
tree | 0edbda5dabbd0fb6295b27aa7db12baa96438f7e /Projects/XPLAINBridge | |
parent | 5f709e281eec223c5de9766a99bdd54339e149cb (diff) | |
parent | 55283475d3e1c8191b3569524d35066566ceb0e7 (diff) | |
download | lufa-5ec9d04bcaa0f48098441f36dd6d048ff32ecb99.tar.gz lufa-5ec9d04bcaa0f48098441f36dd6d048ff32ecb99.tar.bz2 lufa-5ec9d04bcaa0f48098441f36dd6d048ff32ecb99.zip |
AppConfigHeaders: Merge in latest trunk.
Diffstat (limited to 'Projects/XPLAINBridge')
-rw-r--r-- | Projects/XPLAINBridge/XPLAINBridge.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Projects/XPLAINBridge/XPLAINBridge.c b/Projects/XPLAINBridge/XPLAINBridge.c index 3bd1fbf55..7909cc45c 100644 --- a/Projects/XPLAINBridge/XPLAINBridge.c +++ b/Projects/XPLAINBridge/XPLAINBridge.c @@ -226,9 +226,8 @@ void EVENT_USB_Device_ConfigurationChanged(void) { ConfigSuccess &= Endpoint_ConfigureEndpoint(AVRISP_DATA_OUT_EPADDR, EP_TYPE_BULK, AVRISP_DATA_EPSIZE, 1); - #if defined(LIBUSB_DRIVER_COMPAT) - ConfigSuccess &= Endpoint_ConfigureEndpoint(AVRISP_DATA_IN_EPADDR, EP_TYPE_BULK, AVRISP_DATA_EPSIZE, 1); - #endif + if ((AVRISP_DATA_IN_EPADDR & ENDPOINT_EPNUM_MASK) != (AVRISP_DATA_OUT_EPADDR & ENDPOINT_EPNUM_MASK)) + ConfigSuccess &= Endpoint_ConfigureEndpoint(AVRISP_DATA_IN_EPADDR, EP_TYPE_BULK, AVRISP_DATA_EPSIZE, 1); /* Configure the V2 protocol packet handler */ V2Protocol_Init(); |