1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

We should be setting the value of fan_optimal, not its address.

This commit is contained in:
Con Kolivas 2012-02-22 14:26:29 +11:00
parent 0bde957912
commit 03f4f7e6a6

2
adl.c
View File

@ -1019,7 +1019,7 @@ static void fan_autotune(int gpu, int temp, int fanpercent, bool __maybe_unused
else if (newpercent < iMin)
newpercent = iMin;
if (newpercent != fanpercent) {
fan_optimal = false;
*fan_optimal = false;
applog(LOG_INFO, "Setting GPU %d fan percentage to %d", gpu, newpercent);
set_fanspeed(gpu, newpercent);
}