USB Host WAN Dongle library

Fork of USBHostWANDongle_bleedingedge by Donatien Garnier

Files at this revision

API Documentation at this revision

Comitter:
ashleymills
Date:
Wed Dec 19 09:32:39 2012 +0000
Parent:
22:bec61bcc9c25
Child:
24:f4b676f61906
Commit message:
No changes

Changed in this revision

USB3GModule/WANDongle.cpp Show annotated file Show diff for this revision Revisions of this file
USB3GModule/WANDongleInitializer.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/USB3GModule/WANDongle.cpp	Tue Dec 18 15:31:57 2012 +0000
+++ b/USB3GModule/WANDongle.cpp	Wed Dec 19 09:32:39 2012 +0000
@@ -93,8 +93,6 @@
                 DBG("setting serial count %d to %d",m_serialCount,WANDONGLE_MAX_SERIAL_PORTS);
                 m_serialCount = WANDONGLE_MAX_SERIAL_PORTS;
               }
-              m_serialCount = 3;
-              
               for(int j = 0; j < m_serialCount; j++)
               {
                 DBG("Connecting serial port #%d", j+1);
--- a/USB3GModule/WANDongleInitializer.cpp	Tue Dec 18 15:31:57 2012 +0000
+++ b/USB3GModule/WANDongleInitializer.cpp	Wed Dec 19 09:32:39 2012 +0000
@@ -179,7 +179,7 @@
 
 USBEndpoint* VodafoneMU509Initializer::getEp(USBDeviceConnected* pDev, int serialPortNumber, bool tx)
 {
-  return pDev->getEndpoint(serialPortNumber, BULK_ENDPOINT, tx?OUT:IN, 0);
+  return pDev->getEndpoint((serialPortNumber==1)?0:1, BULK_ENDPOINT, tx?OUT:IN, 0);
 }
 
 int VodafoneMU509Initializer::getSerialPortCount()