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 MMA8452Q MS5837 SDFileSystem SCI_SENSOR
Diff: main.cpp
- Revision:
- 26:379bc50f5f23
- Parent:
- 25:69027120c44f
- Child:
- 27:e0943cb83251
--- a/main.cpp Wed Dec 08 19:06:37 2021 +0000 +++ b/main.cpp Wed Dec 08 19:17:39 2021 +0000 @@ -188,7 +188,7 @@ BLE.printf("Acceleration: %f %f %f\r\n",accelData[0],accelData[1],accelData[2]); //end of code from Licht - fopen(fp); + fp = fopen(fname, "a"); fprintf(fp, "$DATA, %f, %f, %f, %f, %f, %f, %f, %f, %f\r\n", t.read(),p_sensor.MS5837_Pressure(),p_sensor.depth(),accelData[0],accelData[1],accelData[2],temp.temp(),light.light(),percent); fclose(fp); }