Closed gdan101 closed 3 years ago
In python2 integer divided by another integer results integer. Fix: step = float(FAN_HIGH - FAN_LOW)/float(MAX_TEMP - MIN_TEMP) setFanSpeed(FAN_LOW + round( temp * step ))
thanks for the report :D
In python2 integer divided by another integer results integer. Fix: step = float(FAN_HIGH - FAN_LOW)/float(MAX_TEMP - MIN_TEMP) setFanSpeed(FAN_LOW + round( temp * step ))