joshualitt 2016-02-11 06:53:36 -08:00 committed by Commit bot
parent 1b39f43941
commit 860fc696d7

View File

@ -94,9 +94,9 @@ ThermalManager::TripPoint::TripPoint(SkString thermalZoneRoot, SkString pointNam
fullPath.appendf("/%s", pointName.c_str());
fPoint = OpenFileAndReadInt32(fullPath.c_str());
fBase = GetTemp(fThermalZoneRoot);
fThreshold = threshold;
fDisabled = fBase >= fPoint + fThreshold; // We disable any trip point which start off
// triggered
fThreshold = threshold;
if (!fDisabled) {
SkDebugf("Trip point %s base - %d trip point-%d\n", fullPath.c_str(),
fBase, fPoint);