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 MTS-Cellular by
Diff: Cellular/UIP.cpp
- Revision:
- 67:7c705fe2acec
- Parent:
- 66:8c55e2bf7270
- Child:
- 72:7862171b277d
--- a/Cellular/UIP.cpp Tue Oct 21 17:26:05 2014 +0000 +++ b/Cellular/UIP.cpp Tue Oct 21 21:06:53 2014 +0000 @@ -280,7 +280,7 @@ return socketOpened; } -bool UIP::close(bool clearBuffer) +bool UIP::close(bool shutdown) { if(io == NULL) { logError("MTSBufferedIO not set"); @@ -302,11 +302,9 @@ return false; } - if (clearBuffer) { - Timer tmr; + if (shutdown) { int counter = 0; char tmp[256]; - tmr.start(); do { if(socketOpened == false) { break;