aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/XPLAINBridge/XPLAINBridge.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-05-21 20:45:16 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-05-21 20:45:16 +0000
commit55283475d3e1c8191b3569524d35066566ceb0e7 (patch)
tree35fbf2642ff3bdb6d14f1618d503de780a07d298 /Projects/XPLAINBridge/XPLAINBridge.c
parentaba30ac2a06ddc85524b0099a6c92982a99dd7f9 (diff)
downloadlufa-55283475d3e1c8191b3569524d35066566ceb0e7.tar.gz
lufa-55283475d3e1c8191b3569524d35066566ceb0e7.tar.bz2
lufa-55283475d3e1c8191b3569524d35066566ceb0e7.zip
Oops - mask out the endpoint address direction when comparing the IN and OUT endpoint indexes in the AVRISP-MKII clone and XPLAINBridge projects.
Diffstat (limited to 'Projects/XPLAINBridge/XPLAINBridge.c')
-rw-r--r--Projects/XPLAINBridge/XPLAINBridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Projects/XPLAINBridge/XPLAINBridge.c b/Projects/XPLAINBridge/XPLAINBridge.c
index e7d9b2486..7909cc45c 100644
--- a/Projects/XPLAINBridge/XPLAINBridge.c
+++ b/Projects/XPLAINBridge/XPLAINBridge.c
@@ -226,7 +226,7 @@ void EVENT_USB_Device_ConfigurationChanged(void)
{
ConfigSuccess &= Endpoint_ConfigureEndpoint(AVRISP_DATA_OUT_EPADDR, EP_TYPE_BULK, AVRISP_DATA_EPSIZE, 1);
- if (AVRISP_DATA_IN_EPADDR != AVRISP_DATA_OUT_EPADDR)
+ 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 */