1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-13 06:01:03 +00:00

Left out an else after the if statement.

This commit is contained in:
Con Kolivas 2012-02-22 14:52:57 +11:00
parent bf3a9f94f1
commit 0d083b63f5

3
adl.c
View File

@ -1081,7 +1081,8 @@ void gpu_autotune(int gpu, enum dev_enable *denable)
applog(LOG_DEBUG, "Temperature below target, increasing clock speed");
if (temp < ga->targettemp - opt_hysteresis)
newengine = ga->maxspeed;
newengine = engine + ga->lpOdParameters.sEngineClock.iStep;
else
newengine = engine + ga->lpOdParameters.sEngineClock.iStep;
} else if (temp < ga->targettemp && *denable == DEV_RECOVER && opt_restart) {
applog(LOG_NOTICE, "Device recovered to temperature below target, re-enabling");
*denable = DEV_ENABLED;