Commit a999611505b03e5aaa9e1ded5a918a4630fc62b4

Con Kolivas 2013-10-21T11:20:47

Op work restart needs a usb command macro offset for hashfast driver.

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