2018 revision to classic DataBus AVC code.

Dependencies:   LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell

Revision:
8:ba70bb062aa0
Parent:
7:1f2661b840ed
Child:
9:fc3575d2cbbf
--- a/Config.cpp	Wed Dec 05 17:53:06 2018 +0000
+++ b/Config.cpp	Wed Dec 05 18:02:32 2018 +0000
@@ -119,13 +119,26 @@
             if (key && value && *key && *value) {
                 key = trim(key);
                 value = trim(value);
-                printf("<%s>=<%s>\n", key, value);
                 assign(key, value);
             }
         }
         fclose(fp);
-    };
+    }
     
+    for (int i=0; i < itable; i++) {
+        printf("%s = ", table[i].key);
+        switch (table[i].format) {
+        case DOUBLE:
+            printf("%f\n", table[i].value.d);
+            break;
+        case INT:
+            printf("%d\n", table[i].value.i);
+            break;
+        default:
+            break;
+        }
+        
+    }
     return status;
 }
 
@@ -150,11 +163,9 @@
 
     // lookup
     for (int i=0; i < itable; i++) {
-        printf("%s\n", key);
         if (!strncmp(table[i].key, key, MAXSTR)) {
             found = 1;
             format = table[i].format;
-            printf("found %s\n", key);
             // assignment
             switch (format) {
             case DOUBLE :