Updates for BatteryProperty 64-bit property values

Change-Id: I4838d384e14a7c2c0b607c0bd693e9c7bef75fb7
This commit is contained in:
Todd Poynor 2014-05-12 19:10:53 -07:00
parent 27cfee3fa4
commit 89ec37fcdd

View file

@ -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;