S5-P05 / ConfigurationFile

Dependencies:   ConfigFile

Dependents:   Ethernet

Revision:
6:d5c26e813715
Parent:
4:c8f6d3677937
--- a/ConfigurationFile.cpp	Wed Apr 06 20:55:08 2016 +0000
+++ b/ConfigurationFile.cpp	Fri Apr 08 14:24:53 2016 +0000
@@ -65,7 +65,7 @@
     char value[BUFSIZ];
     if (cfg.getValue( "GATEWAY", &value[0], sizeof(value))) 
     {
-        printf("'%s'='%s'\n", "GATEWAY", value);
+        printf("'%s'='%s'\r\n", "GATEWAY", value);
         string s = value;
         gateway = s;
     }
@@ -85,7 +85,7 @@
     char value[BUFSIZ];
     if (cfg.getValue( "URL", &value[0], sizeof(value))) 
     {
-        printf("'%s'='%s'\n", "URL", value);
+        printf("'%s'='%s'\r\n", "URL", value);
         string s = value;
         url = s;
     }
@@ -105,7 +105,7 @@
     char value[BUFSIZ];
     if (cfg.getValue( "BROADCAST", &value[0], sizeof(value))) 
     {
-        printf("'%s'='%s'\n", "Broadcast Address", value);
+        printf("'%s'='%s'\r\n", "Broadcast Address", value);
         string s = value;
         broadcastPort = s;
     }
@@ -132,9 +132,9 @@
 
 void ConfigurationFile::getUnitConfiguration()
 {
-    printf("IP : %s\n",getIP());
-    printf("Mask : %s\n",getMask());
-    printf("Gateway : %s\n",getGateway());
-    printf("URL : %s\n",getURL());
-    printf("BroadcastPort : %i,\n",getBroadcastPort());
+    printf("IP : %s\r\n",getIP());
+    printf("Mask : %s\r\n",getMask());
+    printf("Gateway : %s\r\n",getGateway());
+    printf("URL : %s\r\n",getURL());
+    printf("BroadcastPort : %i,\r\n",getBroadcastPort());
 }
\ No newline at end of file