Merge "Don't depend on String8 cast to C string [health]" into main am: d937584b22 am: 69f5242fba am: bd44ec07a2 am: 4d79351da6

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2748301

Change-Id: I367c9d6940716e1b84af359f411a26d967b8f74a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-09-26 22:19:42 +00:00 committed by Automerger Merge Worker
commit e23e5c94bb

View file

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