Browse Source

Merge commit '6e9bbf2' into update_old_avalon_20130513

Luke Dashjr 12 years ago
parent
commit
0f92c97099
1 changed files with 4 additions and 1 deletions
  1. 4 1
      driver-avalon.c

+ 4 - 1
driver-avalon.c

@@ -646,7 +646,10 @@ static bool avalon_prepare(struct thr_info *thr)
 	struct cgpu_info *avalon = thr->cgpu;
 	struct timeval now;
 
-	__avalon_init(avalon);
+	if (avalon->device_fd == -1)
+		avalon_init(avalon);
+	else
+		__avalon_init(avalon);
 
 	gettimeofday(&now, NULL);
 	get_datestamp(avalon->init, &now);