mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-16 12:51:47 +00:00
Oops - mask out the endpoint address direction when comparing the IN and OUT endpoint indexes in the AVRISP-MKII clone and XPLAINBridge projects.
This commit is contained in:
parent
aba30ac2a0
commit
55283475d3
@ -101,7 +101,7 @@ void EVENT_USB_Device_ConfigurationChanged(void)
|
|||||||
ConfigSuccess &= Endpoint_ConfigureEndpoint(AVRISP_DATA_OUT_EPADDR, EP_TYPE_BULK, AVRISP_DATA_EPSIZE, 1);
|
ConfigSuccess &= Endpoint_ConfigureEndpoint(AVRISP_DATA_OUT_EPADDR, EP_TYPE_BULK, AVRISP_DATA_EPSIZE, 1);
|
||||||
|
|
||||||
/* Setup AVRISP Data IN endpoint if it is using a physically different endpoint */
|
/* Setup AVRISP Data IN endpoint if it is using a physically different endpoint */
|
||||||
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);
|
ConfigSuccess &= Endpoint_ConfigureEndpoint(AVRISP_DATA_IN_EPADDR, EP_TYPE_BULK, AVRISP_DATA_EPSIZE, 1);
|
||||||
|
|
||||||
/* Indicate endpoint configuration success or failure */
|
/* Indicate endpoint configuration success or failure */
|
||||||
|
@ -226,7 +226,7 @@ void EVENT_USB_Device_ConfigurationChanged(void)
|
|||||||
{
|
{
|
||||||
ConfigSuccess &= Endpoint_ConfigureEndpoint(AVRISP_DATA_OUT_EPADDR, EP_TYPE_BULK, AVRISP_DATA_EPSIZE, 1);
|
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);
|
ConfigSuccess &= Endpoint_ConfigureEndpoint(AVRISP_DATA_IN_EPADDR, EP_TYPE_BULK, AVRISP_DATA_EPSIZE, 1);
|
||||||
|
|
||||||
/* Configure the V2 protocol packet handler */
|
/* Configure the V2 protocol packet handler */
|
||||||
|
Loading…
Reference in New Issue
Block a user