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.
Dependents: 02_DPPU_JUANDA_120 02_DPPU_JUANDA_120_Latest_copy 02_DPPU_JUANDA_120_Latest
Diff: MDM.cpp
- Revision:
- 109:327d209a8ab9
- Parent:
- 108:254bf037f83f
- Parent:
- 107:436ee320efd6
- Child:
- 112:89b5b21db71e
diff -r 254bf037f83f -r 327d209a8ab9 MDM.cpp
--- 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;
}