diff --git a/health/1.0/default/convert.cpp b/health/1.0/default/convert.cpp index 31b4679980..e12e1978b6 100644 --- a/health/1.0/default/convert.cpp +++ b/health/1.0/default/convert.cpp @@ -117,7 +117,7 @@ void convertToHealthInfo(const struct android::BatteryProperties *p, info.batteryCycleCount = p->batteryCycleCount; info.batteryFullCharge = p->batteryFullCharge; info.batteryChargeCounter = p->batteryChargeCounter; - info.batteryTechnology = p->batteryTechnology; + info.batteryTechnology = p->batteryTechnology.c_str(); } void convertFromHealthInfo(const HealthInfo& info,