Commit dd1c8bd19890dd000177f9b3b7af592fbc3fe2c5

Xiangfu 2013-04-08T23:55:09

fix the fan control on max temp2/3

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-avalon.c b/driver-avalon.c
index 29662e4..b1d3fb3 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -947,7 +947,7 @@ static int64_t avalon_scanhash(struct thr_info *thr)
 	       info->fan0, info->fan1, info->fan2,
 	       info->temp0, info->temp1, info->temp2, info->temp_max);
 	info->temp_history_index++;
-	info->temp_sum += info->temp2;
+	info->temp_sum += avalon->temp;
 	applog(LOG_DEBUG, "Avalon: temp_index: %d, temp_count: %d, temp_old: %d",
 	       info->temp_history_index, info->temp_history_count, info->temp_old);
 	if (info->temp_history_index == info->temp_history_count) {