Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Set avalon4 to cut off if thread should be paused
Browse files Browse the repository at this point in the history
  • Loading branch information
ckolivas committed Feb 7, 2016
1 parent 4979639 commit 34cd843
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions driver-avalon4.c
Expand Up @@ -1762,10 +1762,9 @@ static void avalon4_update(struct cgpu_info *avalon4)

count++;

if (get_temp_max(info, i) >= info->toverheat[i])
if (get_temp_max(info, i) >= info->toverheat[i] || thr->pause)
info->cutoff[i] = 1;

if (info->cutoff[i] && (get_temp_max(info, i) <= (info->toverheat[i] - 10)))
else if (info->cutoff[i] && (get_temp_max(info, i) <= (info->toverheat[i] - 10)))
info->cutoff[i] = 0;

if (info->cutoff[i])
Expand Down

0 comments on commit 34cd843

Please sign in to comment.