-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid handling of temp_table indexes in auto_mod() #4
Comments
Hello @enyone. |
See pull request #6 Fix: Invalid handling of temp_table indexes in auto_mod() |
Also at my Lenovo you cannot set pwm value higher than 200 as it has no effect. 200 has the effect of lowest rpm you can achieve, so the scale is mostly 200-1 (0xC8-0x01). Can of course be firmware/bios version related thing.
|
At line
write_register(temp_table[i-1], FAN_SPEED_REG_RIGHT);
shouldn't it bei+1
instead ofi-1
?As in first cycle in for loop
i=0
so0-1
would be-1
. Is seems that it uses previous (in array) pwm value of temperature instead of next one (in array). Though it works astemp
is newer0
in that for loop if statement as it is checked before for loop in separate if.So temp
65
pwm value will be0xAF
instead of0x7F
.The text was updated successfully, but these errors were encountered: