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:
parent
648c6b7c7c
commit
35a490b90c
1
main.c
1
main.c
@ -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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user