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 SDFileSystem_
Diff: main.cpp
- Revision:
- 14:2707af31e02f
- Parent:
- 13:df67ca499051
- Child:
- 15:12d0699ad423
--- a/main.cpp Wed Sep 01 11:37:07 2021 +0000 +++ b/main.cpp Wed Sep 01 11:41:04 2021 +0000 @@ -106,7 +106,7 @@ writeEEPROMByte(0, max_g); } - sprintf(stracc1,"%d,%lf\r\n",timecount,scr); + sprintf(stracc1,"%d,%d\r\n",timecount,scr); //pc.printf("h3lis331dl:%s",stracc1); if(strlen(buffer1)+strlen(stracc1) > 512) { //pc.printf("buffer over. write file2\r\n"); @@ -136,7 +136,7 @@ read3axes(&tx,&ty,&tz); scr = int_sqrt( tx*tx + ty*ty + tz*tz); pc.printf("old x:%d y:%d,z:%d scaler = %d max g=%2.2fG \r\n",tx,ty,tz,scr, (float)max_g/11.0f); - sprintf(stracc2,"%d,%lf\r\n",timecount,scr); + sprintf(stracc2,"%d,%d\r\n",timecount,scr); //pc.printf("lis3dh:%s",stracc2); if(strlen(buffer2)+ strlen(stracc2)> 512) { ret = fprintf(fp2,"%s",buffer2);