setup内にあり さっきのは間違い

Dependencies:   mbed MPU6050_2 HMC5883L_2 SDFileSystem3

Files at this revision

API Documentation at this revision

Comitter:
taknokolat
Date:
Thu Feb 14 11:58:50 2019 +0000
Parent:
17:2217b2ebef06
Commit message:
a

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Feb 14 11:02:52 2019 +0000
+++ b/main.cpp	Thu Feb 14 11:58:50 2019 +0000
@@ -425,8 +425,13 @@
                
                );
                
-   g_fp = fopen(g_filename, "a");
+   g_fp = fopen( "/sd/Datalog01.txt" ,"r+" );
+  if( g_fp == NULL ) {
+    pc.printf( "ファイルオープンエラー\r\n" );
+    }
    fprintf(g_fp,"Fall Start.\r\n");
+   
+   fclose( g_fp );
      
     Init_sensors();
     //switch2.rise(ResetTrim);