Change-Id: I9c9d9c5ed7e8b67d92f2a7a8ee801baaeeca0900
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
info.present = atoi(present);
info.capacity = atoi(capacity);
+ /* convert info.online to linux standard one */
+ if (info.online == 1) // disconnected: 1 -> 0
+ info.online = 0;
+ else if (info.online == 2) // connected: 2 -> 1
+ info.online = 1;
+
if (!strncmp(status, "Charging", strlen(status))) {
info.current_now = 1000; /* uA */
info.current_average = 1000; /* uA */