setup内にあり さっきのは間違い
Dependencies: mbed MPU6050_2 HMC5883L_2 SDFileSystem3
Revision 18:58e0b1a7e0fb, committed 2019-02-14
- 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 |
diff -r 2217b2ebef06 -r 58e0b1a7e0fb main.cpp --- 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);