S K UCI / Mbed 2 deprecated testEthIntfTCPSocket

Dependencies:   EthernetInterface FatFileSystemCpp SDFileSystem mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
uci1
Date:
Sat Sep 22 04:25:21 2012 +0000
Parent:
0:53afc51b78a9
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;
         };