Updates for BatteryProperty 64-bit property values
Change-Id: I4838d384e14a7c2c0b607c0bd693e9c7bef75fb7
This commit is contained in:
parent
27cfee3fa4
commit
89ec37fcdd
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ extern "C" int is_battery_ok()
|
|||
status_t status = interface->getProperty(android::BATTERY_PROP_CAPACITY,
|
||||
&val);
|
||||
if (status == NO_ERROR) {
|
||||
SLOGD("Capacity is %d", val.valueInt);
|
||||
battery_ok = val.valueInt > 5 ? 1 : 0;
|
||||
SLOGD("Capacity is %d", (int)val.valueInt64);
|
||||
battery_ok = val.valueInt64 > 5 ? 1 : 0;
|
||||
} else {
|
||||
SLOGE("Failed to get battery charge");
|
||||
battery_ok = 1;
|
||||
|
|
Loading…
Reference in a new issue