USB Host Library for Sprint Dongles
Fork of USBHostWANDongleSprint by
Diff: USB3GModule/WANDongleInitializer.cpp
- Revision:
- 5:99f453c4756b
- Parent:
- 3:9ec92dd8a8cb
- Child:
- 6:aaf432a6819b
--- a/USB3GModule/WANDongleInitializer.cpp Wed Sep 26 07:07:47 2012 +0000 +++ b/USB3GModule/WANDongleInitializer.cpp Wed Oct 10 08:20:39 2012 +0000 @@ -61,12 +61,12 @@ USBEndpoint* Sprint598UInitializer::getEp(USBDeviceConnected* pDev, int serialPortNumber, bool tx) { - return pDev->getEndpoint(0, BULK_ENDPOINT, tx?OUT:IN, 0); + return pDev->getEndpoint(serialPortNumber, BULK_ENDPOINT, tx?OUT:IN, 0); } int Sprint598UInitializer::getSerialPortCount() { - return 2; + return 1; } /*virtual*/ void Sprint598UInitializer::setVidPid(uint16_t vid, uint16_t pid) @@ -75,7 +75,7 @@ { m_hasSwitched = true; m_currentSerialIntf = 0; - m_endpointsToFetch = 4; + m_endpointsToFetch = 2; m_endpointsToSkip = 0; } else