1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-30 08:24:26 +00:00

Explicitly disable dynamic mode when an intensity is set.

This commit is contained in:
Con Kolivas 2011-09-27 14:25:02 +10:00
parent 648c6b7c7c
commit 35a490b90c

1
main.c
View File

@ -1390,6 +1390,7 @@ static char *set_intensity(char *arg)
if (!strncasecmp(nextptr, "d", 1)) if (!strncasecmp(nextptr, "d", 1))
gpus[device].dynamic = true; gpus[device].dynamic = true;
else { else {
gpus[device].dynamic = false;
val = atoi(nextptr); val = atoi(nextptr);
if (val < -10 || val > 10) if (val < -10 || val > 10)
return "Invalid value passed to set intensity"; return "Invalid value passed to set intensity";