Add a bunch of APNs
Fork of C027_Support by
Diff: MDM.cpp
- Revision:
- 125:246587b92b3b
- Parent:
- 123:c2c4b6b421c8
- Child:
- 134:d84232916eac
diff -r db878a234544 -r 246587b92b3b MDM.cpp --- a/MDM.cpp Thu Mar 12 17:10:17 2015 +0000 +++ b/MDM.cpp Mon Apr 13 14:17:37 2015 +0000 @@ -1113,8 +1113,9 @@ LOCK(); if (ISSOCKET(socket)) { if (_sockets[socket].connected) { - if (_sockets[socket].pending < blk) + if (_sockets[socket].pending < blk) { blk = _sockets[socket].pending; + } if (blk > 0) { sendFormated("AT+USORD=%d,%d\r\n",_sockets[socket].handle, blk); if (RESP_OK == waitFinalResp(_cbUSORD, buf)) {