Browse Source

Merge commit '0704505' into bfgminer

Conflicts:
	adl.c
Luke Dashjr 13 years ago
parent
commit
71ba5d0c01
1 changed files with 5 additions and 1 deletions
  1. 5 1
      adl.c

+ 5 - 1
adl.c

@@ -692,7 +692,11 @@ int gpu_fanpercent(int gpu)
 	unlock_adl();
 	if (unlikely(ga->has_fanspeed && ret == -1)) {
 		applog(LOG_WARNING, "GPU %d stopped reporting fanspeed due to driver corruption", gpu);
-		applog(LOG_WARNING, "You will need to start BFGMiner from scratch to correct this");
+		if (opt_restart) {
+			applog(LOG_WARNING, "Restart enabled, will restart BFGMiner");
+			applog(LOG_WARNING, "You can disable this with the --no-restart option");
+			app_restart();
+		}
 		applog(LOG_WARNING, "Disabling fanspeed monitoring on this device");
 		ga->has_fanspeed = false;
 		if (ga->twin) {