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
Diff: main.cpp
- Revision:
- 1:6b90cbfe0c9e
- Parent:
- 0:53afc51b78a9
- Child:
- 2:a625f2ff0174
--- 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; };