Commit 1ec7a47ac178d92003abfe8183b09701ccdd5dd5

Con Kolivas 2013-11-30T12:13:45

Reset work restart flag in hfa driver since we may check for it again in restart_wait.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 5960e50..dd2c219 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -805,6 +805,7 @@ static int64_t hfa_scanwork(struct thr_info *thr)
 
 	if (unlikely(thr->work_restart)) {
 restart:
+		thr->work_restart = false;
 		ret = hfa_send_frame(hashfast, HF_USB_CMD(OP_WORK_RESTART), 0, (uint8_t *)NULL, 0);
 		if (unlikely(!ret)) {
 			ret = hfa_reset(hashfast, info);