Small change to battery log format
authoraidan@aidan-laptop
Thu, 03 Jun 2010 10:43:40 +0100
changeset 22 89d488d6a3c2
parent 21 d034fe1ac0f4
child 23 56d1680cbb1e
Small change to battery log format
pbmd
pbmd.c
stateManager.c
Binary file pbmd has changed
--- a/pbmd.c	Fri May 28 14:51:40 2010 +0100
+++ b/pbmd.c	Thu Jun 03 10:43:40 2010 +0100
@@ -62,7 +62,7 @@
     getBootflag ( bootFileName, bootflag );   
     setBootflag ( bootFileName, BOOTFLAG_MAN_RESTART );
 
-    fputs("\nYYYY-M-MDD,HH:MM:SS,mVolts,mAmps,Lux\n", logFile);
+    fputs("\nYYYY-M-MDD,HH:MM:SS,mVolts,mAmps,State,Spike\n", logFile);
 
     ret = test_interfacekit(progName, logFile, snapFileName, bootflag, boottime, sleepTime);// and off we go
         
--- a/stateManager.c	Fri May 28 14:51:40 2010 +0100
+++ b/stateManager.c	Thu Jun 03 10:43:40 2010 +0100
@@ -162,7 +162,7 @@
     }
     else
     {
-        snprintf( logEntry, 200, "%s %s %s %dV%s %dmA %s\n", timeStr, hostName, progName, Voltage, spikingStr, Amps, getStateDesc(state) );
+        snprintf( logEntry, 200, "%s %s %s %d %d %s %s\n", timeStr, hostName, progName, Voltage, Amps, getStateDesc(state), spikingStr );
         fputs( logEntry, logfile );
         fflush( logfile );
         return 0;