]> git.itanic.dy.fi Git - log-plotter/commitdiff
data: Move the total charge field at the end of the data
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Thu, 10 Oct 2013 18:33:44 +0000 (21:33 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Thu, 10 Oct 2013 18:33:44 +0000 (21:33 +0300)
The agreed log format has mAh at the end, so this needs to be moved
there in order to comply to the agreed format.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
data.c

diff --git a/data.c b/data.c
index 639b6f82b5ececd7627eeebc0fe94c420771b302..89a1f33f5c1dedc3bdcff2bafa3315277c81b0fb 100644 (file)
--- a/data.c
+++ b/data.c
@@ -294,9 +294,10 @@ int read_data(int infd, int outfd)
                        data.cell_voltage[7],
                        data.cell_voltage[8],
                        data.cell_voltage[9],
-                       data.total_charge,
                        data.int_temp,
-                       data.ext_temp);
+                       data.ext_temp,
+                       data.total_charge);
+
                ret = write(outfd, str, len);
                if (ret < 0) {
                        pr_err("write: %m\n");