1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-11 05:01:09 +00:00

Increase MAX_INTENSITY to 42.

Untested, since I do not have the hardware that supports such high a setting.

Requested by yellowz06 on Litecoin Forum:
https://forum.litecoin.net/index.php/topic,6925.msg54952.html#msg54952
This commit is contained in:
Noel Maersk 2013-11-27 14:07:24 +02:00
parent ebecc791e5
commit 533f16aeb1
2 changed files with 4 additions and 5 deletions

View File

@ -536,7 +536,7 @@ char *set_intensity(char *arg)
else {
gpus[device].dynamic = false;
val = atoi(nextptr);
if (val < MIN_INTENSITY || val > MAX_GPU_INTENSITY)
if (val < MIN_INTENSITY || val > MAX_INTENSITY)
return "Invalid value passed to set intensity";
tt = &gpus[device].intensity;
*tt = val;
@ -550,7 +550,7 @@ char *set_intensity(char *arg)
else {
gpus[device].dynamic = false;
val = atoi(nextptr);
if (val < MIN_INTENSITY || val > MAX_GPU_INTENSITY)
if (val < MIN_INTENSITY || val > MAX_INTENSITY)
return "Invalid value passed to set intensity";
tt = &gpus[device].intensity;

View File

@ -1049,9 +1049,8 @@ extern bool add_pool_details(struct pool *pool, bool live, char *url, char *user
#define MIN_INTENSITY 8
#define MIN_INTENSITY_STR "8"
#define MAX_INTENSITY 20
#define MAX_INTENSITY_STR "20"
#define MAX_GPU_INTENSITY 20
#define MAX_INTENSITY 42
#define MAX_INTENSITY_STR "42"
extern bool hotplug_mode;
extern int hotplug_time;