From c0f1a45e7a5fd10ba67e9317e2ed4dc5cb567c18 Mon Sep 17 00:00:00 2001 From: Oleg Mazurov Date: Tue, 19 Jul 2011 07:04:45 -0600 Subject: [PATCH] modified endpoint extractor to work better with Nexus S --- adk.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/adk.cpp b/adk.cpp index 2e696dae..c30a73e6 100644 --- a/adk.cpp +++ b/adk.cpp @@ -273,7 +273,12 @@ void ADK::EndpointXtract(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto //ErrorMessage(PSTR("Conf.Val"), conf); //ErrorMessage(PSTR("Iface Num"),iface); //ErrorMessage(PSTR("Alt.Set"), alt); - + + //added by Yuuichi + if( bNumEP == 3 ) { + return; + } + bConfNum = conf; uint8_t index;