Browse Source

Bugfix: erupter: Fix identify following hw error

Luke Dashjr 12 years ago
parent
commit
9be569395c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      driver-icarus.c

+ 5 - 0
driver-icarus.c

@@ -1016,6 +1016,11 @@ static int64_t icarus_scanhash(struct thr_info *thr, struct work *work,
 			if (!icarus_reopen(icarus, state, &fd))
 				state->firstrun = true;
 			else
+			if (unlikely(state->identify))
+			{
+				// Delay job start until later...
+			}
+			else
 			// Some devices (Cairnsmore1, for example) abort hashing when reopened, so send the job again
 			if (!icarus_job_start(thr))
 				state->firstrun = true;