Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of USBHostWANDongle 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;