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

Commit 3911b8de authored by Wei Wang's avatar Wei Wang
Browse files

ThermalService: Report temperature for ThermalHAL 2.0

Test: Build and manually tested on ThermalHAL 2.0 device
Change-Id: I3ea786660c35ec7b6469e20ec2ccf8df906336f5
parent 01065acd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -68,6 +68,8 @@ Return<void> ThermalChangedCallback::notifyThrottling(
                             static_cast<size_t>(ThrottlingSeverity::SEVERE))
                ? true
                : false;
        value = temperature.value == UNKNOWN_TEMPERATURE ? NAN :
                temperature.value;
        android::os::Temperature thermal_svc_temp(value, type);
        mThermalService->notifyThrottling(isThrottling, thermal_svc_temp);
    } else {