Commit e52762c57ad6bd74fad83c734e36ab3fa76b9677

Con Kolivas 2012-08-07T20:26:24

There is no point zeroing temperature in BFL if we fail to get a response, and we should register it as a HW error, suggesting throttling.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-bitforce.c b/driver-bitforce.c
index 943a7d3..e1c01e1 100644
--- a/driver-bitforce.c
+++ b/driver-bitforce.c
@@ -350,7 +350,7 @@ static bool bitforce_get_temp(struct cgpu_info *bitforce)
 	
 	if (unlikely(!pdevbuf[0])) {
 		applog(LOG_ERR, "BFL%i: Error: Get temp returned empty string/timed out", bitforce->device_id);
-		bitforce->temp = 0;
+		bitforce->hw_errors++;
 		return false;
 	}