Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed XBee mbed-rtos
Diff: main.cpp
- 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