Fixed scoping error with r_therm in thermistor cls.