program to test the sending of small packets of data from memory over EthernetInterface using mbed rtos
Dependencies: EthernetInterface mbed-rtos mbed
Fork of testEthIntfTCPSocket by
Revision 1:6b90cbfe0c9e, committed 2012-09-22
- Comitter:
- uci1
- Date:
- Sat Sep 22 04:25:21 2012 +0000
- Parent:
- 0:53afc51b78a9
- Child:
- 2:a625f2ff0174
- Commit message:
- fixed return of DoIO in case of a send/recv returning 0
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Sep 22 04:01:27 2012 +0000 +++ b/main.cpp Sat Sep 22 04:25:21 2012 +0000 @@ -280,7 +280,7 @@ // TODO: how to check the error? continue; case 0: - return res; + return b; default: b += res; };