StarBoard Orange - Example application No.4 (Version 0.0.1)
Dependencies: mbed SDFileSystem
Diff: main.cpp
- Revision:
- 1:cda1048cb9c9
- Parent:
- 0:34080147c1da
- Child:
- 2:3885fc2eefd8
--- a/main.cpp Mon Sep 20 06:20:27 2010 +0000 +++ b/main.cpp Mon Sep 20 06:32:27 2010 +0000 @@ -39,8 +39,6 @@ /* * Variables. */ -static bool sd_disabled = false; -static FILE *fp = NULL; static int display_mode = 0; /* @@ -58,12 +56,7 @@ * A callback function for logging data. */ void cbfunc_log(char *s) { - if (!sd_disabled) { - fprintf(fp, "%s\n", s); - fflush(fp); - } else { - // printf("%s\n", s); - } + // printf("%s\n", s); } /** @@ -139,17 +132,6 @@ gps.attach(&cb); /* - * Test a SD card. - */ - fp = fopen("/sd/gpslog.txt", "w"); - if (fp == NULL) { - sd_disabled = true; - } else { - sd_disabled = false; - fprintf(fp, "Hello World!\n"); - } - - /* * Attach a ticker for interrupt test. */ ticker.attach_us(&func_ticker, 250 * 1000);