1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

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

This commit is contained in:
Con Kolivas 2013-10-21 11:20:47 +11:00
parent 1bafafb5d3
commit a999611505

View File

@ -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)) {