Browse Source

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

Con Kolivas 12 years ago
parent
commit
a999611505
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-hashfast.c

+ 1 - 1
driver-hashfast.c

@@ -691,7 +691,7 @@ static int64_t hfa_scanwork(struct thr_info *thr)
 
 
 	if (unlikely(thr->work_restart)) {
 	if (unlikely(thr->work_restart)) {
 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)) {
 		if (unlikely(!ret)) {
 			ret = hfa_reset(hashfast, info);
 			ret = hfa_reset(hashfast, info);
 			if (unlikely(!ret)) {
 			if (unlikely(!ret)) {