1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 14:58:01 +00:00

Fix high fan issue at startup/algo switch

Was setting fan speed to gpu_fan (which is the max) instead of min_fan on GPU settings change.
This commit is contained in:
ystarnaud 2014-06-24 10:45:39 -04:00
parent 99082f4269
commit f0527d3d43

12
miner.h
View File

@ -321,6 +321,18 @@ struct gpu_adl {
}; };
#endif #endif
#ifndef opt_isset
#define opt_isset(opt, val) (((opt & val) == val)?1:0)
#endif
enum gpu_adl_options {
APPLY_ENGINE = 1,
APPLY_MEMCLOCK = 2,
APPLY_FANSPEED = 4,
APPLY_POWERTUNE = 8,
APPLY_VDDC = 16
};
extern void blank_get_statline_before(char *buf, size_t bufsiz, struct cgpu_info __maybe_unused *cgpu); extern void blank_get_statline_before(char *buf, size_t bufsiz, struct cgpu_info __maybe_unused *cgpu);
struct api_data; struct api_data;