Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6deecc5f authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "health 2.1 impl: log values properly." am: 709382fc am: 5fef7e1d am: 98a3f25f

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I66a3ea9b90a2b7978c7eec1e5d0697ab86bf1d9e
parents 9ae2812f 98a3f25f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -80,14 +80,14 @@ Return<Result> Health::unregisterCallback(const sp<V2_0::IHealthInfoCallback>&)

Return<Result> Health::update() {
    Result result = Result::UNKNOWN;
    getHealthInfo_2_1([&](auto res, const auto& /* health_info */) {
    getHealthInfo_2_1([&](auto res, const auto& health_info) {
        result = res;
        if (res != Result::SUCCESS) {
            LOG(ERROR) << "Cannot call getHealthInfo_2_1: " << toString(res);
            return;
        }

        battery_monitor_.logValues();
        BatteryMonitor::logValues(health_info, *healthd_config_);
    });
    return result;
}