Made Thermostate::setTemp more restrictive to avoid segfaulting.
Removed unneccessary local variable from Thermostate::proc().