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

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

Change-Id: I92630f1488fdf7a23ca6d286432eec854f9c792b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-09-26 20:41:43 +00:00 committed by Automerger Merge Worker
commit bd44ec07a2

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,