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 HeptaBattery SDFileSystem HeptaCamera_GPS Hepta9axis HeptaTemp HeptaXbee
Diff: main.cpp
- Revision:
- 17:904bcb46a48d
- Parent:
- 16:83536ace57fb
- Child:
- 18:191d9868effe
- Child:
- 19:58fb3ab94fbe
--- a/main.cpp Fri Sep 08 17:49:21 2017 +0000 +++ b/main.cpp Fri Sep 08 17:58:11 2017 +0000 @@ -21,7 +21,7 @@ pc.printf("Command Get %d\r\n",rcmd); if(rcmd == 'a') { while(1) { - FILE *fp = fopen("/sd/mydir/test.txt", "a"); + FILE *fp = fopen("/sd/mydir/test_thermal.txt", "a"); temper.temp_sensing_vol(&voltage); pc.printf("Volt = %f\r\n",voltage); fprintf(fp,"%f\r\n",voltage); @@ -32,7 +32,7 @@ } if(rcmd == 'b') { pc.printf("SD test Mode\r\n"); - FILE *fp = fopen("/sd/myfile.txt", "w"); + FILE *fp = fopen("/sd/mydir/myfile.txt", "w"); if(fp == NULL) { pc.printf("Could not open file for write\r\n"); } else {