projects
/
platform
/
core
/
system
/
batterymonitor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b15ed76
)
AC plug type for last charge
46/233346/2
author
Dewal Agarwal
<d1.agarwal@samsung.com>
Thu, 14 May 2020 05:48:04 +0000
(11:18 +0530)
committer
Dewal Agarwal
<d1.agarwal@samsung.com>
Thu, 14 May 2020 05:52:53 +0000
(11:22 +0530)
Change-Id: Ifff27e031c8cabd505e67eda0958cc5ae2572a99
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
src/battery_dump/bd_history_item.c
patch
|
blob
|
history
diff --git
a/src/battery_dump/bd_history_item.c
b/src/battery_dump/bd_history_item.c
index
07b2312
..
22e1625
100644
(file)
--- a/
src/battery_dump/bd_history_item.c
+++ b/
src/battery_dump/bd_history_item.c
@@
-1352,7
+1352,7
@@
static int bd_set_history_from_listener(history_item_s* nrec)
history_data[h_count].time_s = ((long long)tv.tv_sec * 1000) + ((long long)tv.tv_usec / 1000);
#endif
- if (nrec->battery_plugtype
> BD_BPLT_DIS
)
+ if (nrec->battery_plugtype
== BD_BPLT_AC || nrec->battery_plugtype == BD_BPLT_WL
)
lst_charge = tv.tv_sec;
dvar1 = ((nrec->cmd_s) & 0xff) | ((nrec->battery_level << 8) & 0xff00) |