summaryrefslogtreecommitdiff
path: root/src/device_manager_plugin_pinetrail.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device_manager_plugin_pinetrail.c')
-rw-r--r--src/device_manager_plugin_pinetrail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device_manager_plugin_pinetrail.c b/src/device_manager_plugin_pinetrail.c
index 70214d8..9030981 100644
--- a/src/device_manager_plugin_pinetrail.c
+++ b/src/device_manager_plugin_pinetrail.c
@@ -704,7 +704,7 @@ int OEM_sys_get_battery_capacity(int *value)
if(charge_full == 0)
{
ret = sys_get_int(BATTERY_CHARGE_FULL_PATH, &charge_full);
- if(ret != 0)
+ if(ret != 0 || charge_full == 0)
{
devmgr_log("get battery charge full error!");
charge_full = 0;