NetServices Stack source
Dependents: HelloWorld ServoInterfaceBoardExample1 4180_Lab4
Diff: drv/umtsstick/UMTSStick.cpp
- Revision:
- 5:dd63a1e02b1b
- Parent:
- 4:fd826cad83c0
--- a/drv/umtsstick/UMTSStick.cpp Fri Jul 09 14:46:47 2010 +0000 +++ b/drv/umtsstick/UMTSStick.cpp Tue Jul 27 15:59:42 2010 +0000 @@ -116,6 +116,11 @@ ready = true; } + wait(2); //Wait for device to be initialized + + if(!m_host.devicesCount()) + return UMTSERR_DISCONNECTED; + m_pDev = m_host.getDevice(0); while(!m_pDev->enumerated()) @@ -124,9 +129,7 @@ if(!m_host.devicesCount()) return UMTSERR_DISCONNECTED; } - - wait(3); - + return UMTSERR_OK; }