Hiroshi Yamaguchi / Mbed 2 deprecated XBeeExamples

Dependencies:   mbed XBee mbed-rtos

Revision:
8:a2b2454689bf
Parent:
6:d456c203adb6
--- a/main.cpp	Wed Sep 26 06:13:30 2012 +0000
+++ b/main.cpp	Wed Sep 26 07:00:54 2012 +0000
@@ -1,13 +1,13 @@
 #include "functions.h"
 
 int main() {
-    for (int i = 1; functions[i].name; i++)
-        printf("%2d: %s\n", i, functions[i]);
+    for (int i = 1; functions[i].func; i++)
+        printf("%2d: %s\n", i, functions[i].description);
 
     printf("Select => ");
     int n;
     scanf("%d", &n);
-    printf("starting \"%d: %s\"\n", n,  functions[n].name);
+    printf("Starting \"%d: %s\"\n", n, functions[n].description);
     
     functions[n].func();
 }
\ No newline at end of file