USB Host Library for Sprint Dongles
Fork of USBHostWANDongleSprint by
Diff: USB3GModule/WANDongle.cpp
- Revision:
- 2:34c976009b70
- Parent:
- 0:bfed5767d0a5
- Child:
- 3:9ec92dd8a8cb
--- a/USB3GModule/WANDongle.cpp Wed Sep 12 09:46:40 2012 +0000 +++ b/USB3GModule/WANDongle.cpp Mon Sep 24 09:08:49 2012 +0000 @@ -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__ "WANDongle.cpp" #endif @@ -63,6 +63,7 @@ int ret = host->resetDevice(dev); if(ret) { + WARN("Could not reset it"); host->unlock(); return false; } @@ -71,6 +72,7 @@ ret = host->enumerate(dev, this); if(ret) { + WARN("Could not enumerate"); host->unlock(); return false; } @@ -109,7 +111,7 @@ } else if ((dev->getVid() == m_pInitializer->getMSDVid()) && (dev->getPid() == m_pInitializer->getMSDPid())) { - DBG("Vodafone K3370 dongle detected in MSD mode"); + DBG("Dongle detected in MSD mode"); //Try to switch if( m_pInitializer->switchMode(dev) ) {