From 4be54b887a5160d1b367682493fa7e425dde677b Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Thu, 10 Oct 2013 21:33:44 +0300 Subject: [PATCH] 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 --- data.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"); -- 2.44.0