From: Timo Kokkonen Date: Thu, 10 Oct 2013 18:33:44 +0000 (+0300) Subject: data: Move the total charge field at the end of the data X-Git-Url: http://git.itanic.dy.fi/?p=log-plotter;a=commitdiff_plain;h=4be54b887a5160d1b367682493fa7e425dde677b data: Move the total charge field at the end of the data 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 --- diff --git a/data.c b/data.c index 639b6f8..89a1f33 100644 --- 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");