If only one passive temperature exists,
use the last active temperature below passive point
as switch_on temperature.
Change-Id: I57a8d94683881d10af5de30d57287159517ec364
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
params->trip_max_desired_temperature = last_passive;
} else if (found_first_passive) {
params->trip_max_desired_temperature = params->trip_switch_on;
- params->trip_switch_on = INVALID_TRIP;
+ params->trip_switch_on = last_active;
} else {
params->trip_switch_on = INVALID_TRIP;
params->trip_max_desired_temperature = last_active;