Julesnaps / Mbed 2 deprecated Linefollowproject

Dependencies:   m3pi mbed

Revision:
78:0d905b656132
Parent:
77:e1ece5800d7a
Child:
79:9d46b0d532e1
--- 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