Browse Source

Bugfix: bitforce: Prefer 2nd temperature if higher than 1st

Luke Dashjr 12 years ago
parent
commit
267678f21e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-bitforce.c

+ 1 - 1
driver-bitforce.c

@@ -467,7 +467,7 @@ static bool bitforce_get_temp(struct cgpu_info *bitforce)
 				float temp2 = my_strtof(s + 1, &s);
 				set_float_if_gt_zero(&data->temp[1], temp2);
 				if (temp2 > temp)
-					temp = temp;
+					temp = temp2;
 			}
 		}