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 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 |
--- 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);