]> git.itanic.dy.fi Git - log-plotter/blobdiff - data.h
data.c: Reset time stamp when starting new log
[log-plotter] / data.h
diff --git a/data.h b/data.h
index 6e286faed2c0ec0fd94033f03d88c5083610b493..0906e4cae24a3f40460837c9f4d5d869968bb877 100644 (file)
--- a/data.h
+++ b/data.h
@@ -6,12 +6,13 @@
 #define MAX_CELLS 10
 
 struct charger_data {
-       int channel;
+       unsigned int channel;
        int state;
        double timestamp;       /* seconds since beginning of the charging */
        double input_voltage;
        double charging_voltage;
        double charging_current;
+       int cell_count;
        double cell_voltage[MAX_CELLS];
 
        double total_charge;    /* mAh */