Browse Source

bitforce: Set default cutoff temperature to 85C for SC-class devices

Luke Dashjr 12 years ago
parent
commit
53f0bd91ec
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-bitforce.c

+ 2 - 0
driver-bitforce.c

@@ -281,6 +281,8 @@ static bool bitforce_detect_one(const char *devpath)
 	bitforce->deven = DEV_ENABLED;
 	bitforce->deven = DEV_ENABLED;
 	bitforce->procs = parallel;
 	bitforce->procs = parallel;
 	bitforce->threads = 1;
 	bitforce->threads = 1;
+	if (initdata->sc)
+		bitforce->cutofftemp = 85;
 
 
 	if (likely((!memcmp(pdevbuf, ">>>ID: ", 7)) && (s = strstr(pdevbuf + 3, ">>>")))) {
 	if (likely((!memcmp(pdevbuf, ">>>ID: ", 7)) && (s = strstr(pdevbuf + 3, ">>>")))) {
 		s[0] = '\0';
 		s[0] = '\0';