Added charriot returns (\r) to every new line (\n).

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of TCPEchoServer by mbed official

Revision:
7:54e9bc1ededf
Parent:
3:36fd3cfad85a
--- a/main.cpp	Tue Jun 04 16:07:06 2013 +0100
+++ b/main.cpp	Sun Apr 26 21:08:47 2015 +0000
@@ -7,19 +7,19 @@
     EthernetInterface eth;
     eth.init(); //Use DHCP
     eth.connect();
-    printf("IP Address is %s\n", eth.getIPAddress());
+    printf("IP Address is %s\n\r", eth.getIPAddress());
     
     TCPSocketServer server;
     server.bind(ECHO_SERVER_PORT);
     server.listen();
     
     while (true) {
-        printf("\nWait for new connection...\n");
+        printf("\n\rWait for new connection...\n\r");
         TCPSocketConnection client;
         server.accept(client);
         client.set_blocking(false, 1500); // Timeout after (1.5)s
         
-        printf("Connection from: %s\n", client.get_address());
+        printf("Connection from: %s\n\r", client.get_address());
         char buffer[256];
         while (true) {
             int n = client.receive(buffer, sizeof(buffer));