Browse Source

Merge commit '735d77f' into bfgminer

Luke Dashjr 13 years ago
parent
commit
985cf3d8a5
1 changed files with 5 additions and 0 deletions
  1. 5 0
      driver-bitforce.c

+ 5 - 0
driver-bitforce.c

@@ -306,6 +306,11 @@ static bool bitforce_get_temp(struct cgpu_info *bitforce)
 	if ((!strncasecmp(pdevbuf, "TEMP", 4)) && (s = strchr(pdevbuf + 4, ':'))) {
 		float temp = strtof(s + 1, NULL);
 
+		/* Cope with older software  that breaks and reads nonsense
+		 * values */
+		if (temp > 100)
+			temp = strtod(s + 1, NULL);
+
 		if (temp > 0) {
 			bitforce->temp = temp;
 		}