Hiroshi Yamaguchi / Mbed 2 deprecated XBeeExamples

Dependencies:   mbed XBee mbed-rtos

Revision:
6:d456c203adb6
Parent:
0:34e0352d7396
Child:
8:a2b2454689bf
--- a/main.cpp	Thu Apr 12 10:21:11 2012 +0000
+++ b/main.cpp	Thu Sep 20 11:17:17 2012 +0000
@@ -1,13 +1,13 @@
 #include "functions.h"
 
 int main() {
-    for (int i = 0; functions[i].name; i++)
-        printf("[%d] %s\n", i, functions[i]);
+    for (int i = 1; functions[i].name; i++)
+        printf("%2d: %s\n", i, functions[i]);
 
     printf("Select => ");
     int n;
     scanf("%d", &n);
-    printf("starting \"[%d] %s\"\n", n,  functions[n].name);
+    printf("starting \"%d: %s\"\n", n,  functions[n].name);
     
     functions[n].func();
 }
\ No newline at end of file