Integrating the ublox LISA C200 modem

Fork of SprintUSBModemHTTPClientTest by Donatien Garnier

Revision:
7:655438fd019f
Parent:
5:3f93dd1d4cb3
--- a/SprintUSBModem/USBHostWANDongleSprint/USB3GModule/WANDongleInitializer.cpp	Thu Sep 26 00:51:06 2013 -0500
+++ b/SprintUSBModem/USBHostWANDongleSprint/USB3GModule/WANDongleInitializer.cpp	Thu Sep 26 11:15:22 2013 -0700
@@ -16,7 +16,7 @@
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
 
-#define __DEBUG__ 0
+#define __DEBUG__ 4
 #ifndef __MODULE__
 #define __MODULE__ "WANDongleInitializer.cpp"
 #endif
@@ -274,7 +274,7 @@
 {
     DBG("USBEndpoint on Interface #%d; Type:%d; Direction:%d Current %d", intf_nb, type, dir, m_currentEndpoint);
     if(type == BULK_ENDPOINT) {
-        if( (m_currentEndpoint >= 0) && (m_currentEndpoint < 6) ) {
+        if( intf_nb == 1 || intf_nb == 0) {
             m_currentEndpoint++;
             return true;
         } else {
@@ -282,6 +282,17 @@
         }
     }
 
+		/*
+    if(type == INTERRUPT_ENDPOINT) {
+        if( intf_nb == 1) {
+            m_currentEndpoint++;
+            return true;
+        } else {
+            m_currentEndpoint++;
+        }
+    }
+		*/
+		
     return false;
 }