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

Commit bd9d761f authored by Matt Buckley's avatar Matt Buckley Committed by Automerger Merge Worker
Browse files

Merge "Fix early hint missing safety margin" into tm-qpr-dev am: 2fae4974 am: a6248f35

parents f261a275 a6248f35
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -238,7 +238,8 @@ void PowerAdvisor::sendPredictedWorkDuration() {
        std::lock_guard lock(mPowerHalMutex);
        std::lock_guard lock(mPowerHalMutex);
        HalWrapper* const halWrapper = getPowerHal();
        HalWrapper* const halWrapper = getPowerHal();
        if (halWrapper != nullptr) {
        if (halWrapper != nullptr) {
            halWrapper->sendActualWorkDuration(*predictedDuration, systemTime());
            halWrapper->sendActualWorkDuration(*predictedDuration + kTargetSafetyMargin.count(),
                                               systemTime());
        }
        }
    }
    }
}
}