(Before)
device_battery_get_property(DEVICE_BATTERY_PROPERTY_TEMPERATURE=286
device_thermal_get_temperature(DEVICE_THERMAL_BATTERY=28
(After)
device_battery_get_property(DEVICE_BATTERY_PROPERTY_TEMPERATURE=28
device_thermal_get_temperature(DEVICE_THERMAL_BATTERY=28
Change-Id: Ia123e143876152b492c67e6f51924e28b550e024
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
val = (char *)udev_device_get_property_value(dev, "POWER_SUPPLY_TEMP");
if (!val)
return;
- info.temperature = atoi(val);
+ info.temperature = atoi(val) / 10;
udata.updated_cb(&info, udata.data);
}
_E("Failed to get value of (%s, %d)", path, ret);
return ret;
}
- info.temperature = val;
+ info.temperature = val / 10;
updated_cb(&info, data);