DriftKingTW / Raspberry-Pi-PWM-Fan-Control

Raspberry Pi PWM fan contorl (for Notcua PWM fans)
MIT License
81 stars 33 forks source link

fan_control.py speed step calculation #1

Closed gdan101 closed 3 years ago

gdan101 commented 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 ))

DriftKingTW commented 3 years ago

thanks for the report :D