From 533f16aeb1e8e061b81f2c0fb63ebac6d3be9d6e Mon Sep 17 00:00:00 2001 From: Noel Maersk Date: Wed, 27 Nov 2013 14:07:24 +0200 Subject: [PATCH] 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 --- driver-opencl.c | 4 ++-- miner.h | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/driver-opencl.c b/driver-opencl.c index ec50820e..acff7549 100644 --- a/driver-opencl.c +++ b/driver-opencl.c @@ -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; diff --git a/miner.h b/miner.h index 06735e3a..6fe9d6c1 100644 --- a/miner.h +++ b/miner.h @@ -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;