PHS module SMA-01 library. see: https://developer.mbed.org/users/phsfan/notebook/abitusbmodem/
Dependencies: Socket lwip-sys lwip
Dependents: AbitUSBModem_HTTPTest AbitUSBModem_MQTTTest AbitUSBModem_WebsocketTest AbitUSBModem_SMSTest
Fork of VodafoneUSBModem by
Revision 98:1b851249d70b, committed 2015-02-18
- Comitter:
- phsfan
- Date:
- Wed Feb 18 15:32:57 2015 +0000
- Parent:
- 97:7d9cc95e2ea7
- Child:
- 99:514e67a69ad6
- Commit message:
- fix buffer over run in PPPIPInterface.cpp
Changed in this revision
ip/PPPIPInterface.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/ip/PPPIPInterface.cpp Wed Feb 18 14:11:24 2015 +0000 +++ b/ip/PPPIPInterface.cpp Wed Feb 18 15:32:57 2015 +0000 @@ -104,7 +104,7 @@ /*virtual*/ int PPPIPInterface::connect() { int ret; - char buf[32]; + char buf[40]; size_t len; DBG("Trying to connect with PPP"); @@ -119,7 +119,7 @@ DBG("Expect %s", EXPECTED_RESP); - Thread::wait(500); + Thread::wait(100); len = 0; size_t readLen; ret = m_pStream->read((uint8_t*)buf + len, &readLen, EXPECTED_RESP_MIN_LEN, DEFAULT_TIMEOUT);