mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-13 06:01:03 +00:00
Check there is a cutoff temp actually set in bitforce before using it as a cut off value otherwise it may think it's set to zero degrees.
This commit is contained in:
parent
2953aa2502
commit
5118e3ee7c
@ -257,7 +257,7 @@ static bool bitforce_get_temp(struct cgpu_info *bitforce)
|
||||
|
||||
if (temp > 0) {
|
||||
bitforce->temp = temp;
|
||||
if (temp > bitforce->cutofftemp) {
|
||||
if (unlikely(bitforce->cutofftemp > 0 && temp > bitforce->cutofftemp)) {
|
||||
applog(LOG_WARNING, "BFL%i: Hit thermal cutoff limit, disabling!", bitforce->device_id);
|
||||
bitforce->deven = DEV_RECOVER;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user