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
Revision 109:327d209a8ab9, committed 2014-09-15
- Comitter:
- mazgch
- Date:
- Mon Sep 15 11:54:17 2014 +0000
- Parent:
- 108:254bf037f83f
- Parent:
- 107:436ee320efd6
- Child:
- 110:f524fd9aa13d
- Commit message:
- merged
Changed in this revision
| MDM.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MDM.cpp Mon Sep 15 11:51:49 2014 +0000
+++ b/MDM.cpp Mon Sep 15 11:54:17 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;
}
