USB Host WAN Dongle library
Fork of USBHostWANDongle_bleedingedge by
Diff: USB3GModule/WANDongle.cpp
- Revision:
- 25:3184f71557bf
- Parent:
- 24:f4b676f61906
- Parent:
- 19:6526d83aab9f
--- a/USB3GModule/WANDongle.cpp Wed Jan 09 16:13:34 2013 +0000 +++ b/USB3GModule/WANDongle.cpp Fri Mar 08 11:04:45 2013 +0000 @@ -32,6 +32,7 @@ { host = USBHost::getHostInst(); init(); + DBG("WANDongle object instantiated. getHostInst method called on USBHost."); } @@ -128,6 +129,13 @@ } } //if() } //if() + /*else + { + // Looks like the getDevice method failed and returned a null pointer. Maybe there has been a power cut, modem pulled or something to stop the modem. + // Lets run the initilise routine again. Next time round the loop we might have a handle to an end point! + DBG("Trying to initialise the USB stack since the getDevice method has returned a null pointer"); + init(); + }*/ } //for() host->unlock(); return false;