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:
parent
99082f4269
commit
f0527d3d43
12
miner.h
12
miner.h
@ -321,6 +321,18 @@ struct gpu_adl {
|
||||
};
|
||||
#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);
|
||||
|
||||
struct api_data;
|
||||
|
Loading…
Reference in New Issue
Block a user