#include <math.h>
#include "data.h"
-#include "debug.h"
+#include "trace.h"
+#include "utils.h"
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
static int separate_entries(char *buf, char *entries[], int max_entries)
{
}
cell_avg /= (double)active_cells;
- pr_info("\r\033[K%8s Ubat: %.3fV Ucell avg: %.3fV ",
- time_str, data->charging_voltage, cell_avg);
+ pr_info("\r\033[K%8s Ubat: %.3fV Ucell avg: %.3fV "
+ "Current: %.2fA Charge %.0fmAh ",
+ time_str, data->charging_voltage, cell_avg,
+ data->charging_current, data->total_charge);
fflush(stdout);