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.
Diff: main.cpp
- Revision:
- 78:0d905b656132
- Parent:
- 77:e1ece5800d7a
- Child:
- 79:9d46b0d532e1
diff -r e1ece5800d7a -r 0d905b656132 main.cpp --- a/main.cpp Tue Oct 25 08:58:07 2022 +0000 +++ b/main.cpp Tue Oct 25 09:11:48 2022 +0000 @@ -76,7 +76,7 @@ TE_CreateVoltageLog(); while (1) { - /* If cycle count divided by 100 does not have a rest. test if pit */ + /* If cycle count divided by a constant does not have a rest. test if pit */ if (ccount % CYCLEBEFORETEST == 0 && gotoPit == 0) { TE_LogVoltage(ccount); @@ -347,7 +347,7 @@ FILE *fptr; /* voltagelog adres */ fptr = fopen(VOLTAGELOGPATH,"a"); - fprintf(fptr," %d , %8d , %4.4f , %4.4f \n" , timer.read()-startTime, count, m3pi.battery(),m3pi.pot_voltage() ); + fprintf(fptr,"%8d,%8d,%4.4f,%4.4f\n" , timer.read()-startTime, count, m3pi.battery(),m3pi.pot_voltage() ); fclose(fptr); } \ No newline at end of file