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 C027_Support by
Diff: MDM.cpp
- Revision:
- 107:436ee320efd6
- Parent:
- 106:18aeacdae391
- Child:
- 109:327d209a8ab9
--- a/MDM.cpp Tue Aug 12 08:43:15 2014 +0000 +++ b/MDM.cpp Sat Sep 13 16:05:07 2014 +0000 @@ -945,8 +945,8 @@ { bool ok = false; LOCK(); - TRACE("socketIsConnected(%d)\r\n", socket); ok = ISSOCKET(socket) && _sockets[socket].connected; + TRACE("socketIsConnected(%d) %s\r\n", socket, ok?"yes":"no"); UNLOCK(); return ok; } @@ -1122,9 +1122,12 @@ } } UNLOCK(); - if (!ok) + if (!ok) { + TRACE("socketRecv: ERROR\r\n"); return SOCKET_ERROR; + } } + TRACE("socketRecv: %d \"%*s\"\r\n", cnt, cnt, buf-cnt); return cnt; } @@ -1182,11 +1185,14 @@ } } UNLOCK(); - if (!ok) + if (!ok) { + TRACE("socketRecv: ERROR\r\n"); return SOCKET_ERROR; + } } timer.stop(); timer.reset(); + TRACE("socketRecv: %d \"%*s\"\r\n", cnt, cnt, buf-cnt); return cnt; }