LM77_TEMP_MAX
val = clamp_val(val, LM77_TEMP_MIN, LM77_TEMP_MAX);
val = clamp_val(data->temp[t_crit] - val, LM77_TEMP_MIN, LM77_TEMP_MAX);