Browse Source

bifury: Thermal overheat causes restart losing the clock, so resend it while temperature is over 80 C

Luke Dashjr 12 years ago
parent
commit
3b40936ff4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      driver-bifury.c

+ 3 - 0
driver-bifury.c

@@ -390,6 +390,9 @@ void bifury_handle_cmd(struct cgpu_info * const dev, const char * const cmd)
 			const float celsius = 0.1 * (float)decicelsius;
 			const float celsius = 0.1 * (float)decicelsius;
 			for (proc = dev; proc; proc = proc->next_proc)
 			for (proc = dev; proc; proc = proc->next_proc)
 				proc->temp = celsius;
 				proc->temp = celsius;
+			if (decicelsius >= 800)
+				// Thermal overheat causes restart losing the clock, so resend it while temperature is over 80 C
+				state->send_clock = true;
 		}
 		}
 	}
 	}
 	else
 	else