projects
/
platform
/
core
/
api
/
device.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be4ca15
)
Fix bug
86/236486/1
author
sanghyeok.oh
<sanghyeok.oh@samsung.com>
Wed, 17 Jun 2020 10:23:24 +0000
(19:23 +0900)
committer
sanghyeok.oh
<sanghyeok.oh@samsung.com>
Wed, 17 Jun 2020 10:23:30 +0000
(19:23 +0900)
Change-Id: Ie4dea4f0e622f5bcb91d73793413456ffe4d85ff
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
src/battery.c
patch
|
blob
|
history
diff --git
a/src/battery.c
b/src/battery.c
index
de5929c
..
1ce8139
100644
(file)
--- a/
src/battery.c
+++ b/
src/battery.c
@@
-218,7
+218,7
@@
int device_battery_get_health(device_battery_health_e *health)
return ret;
}
- len = strlen(info.
status
);
+ len = strlen(info.
health
);
if (!strncmp(info.health, "Good", len))
*health = DEVICE_BATTERY_HEALTH_GOOD;
else if (!strncmp(info.health, "Cold", len))
@@
-254,7
+254,7
@@
int device_battery_get_power_source(device_battery_power_source_e *source)
return ret;
}
- len = strlen(info.
status
);
+ len = strlen(info.
power_source
);
if (!strncmp(info.power_source, "ac", len))
*source = DEVICE_BATTERY_POWER_SOURCE_AC;
else if (!strncmp(info.power_source, "usb", len))