From 17baf4548af89263dbb6ef9f883a7b109a2396b5 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 20 Oct 2013 16:52:34 +1100 Subject: [PATCH] Send correct command with hfa_send_frame in hashfast driver. --- driver-hashfast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver-hashfast.c b/driver-hashfast.c index b8391ea5..cef12b73 100644 --- a/driver-hashfast.c +++ b/driver-hashfast.c @@ -106,7 +106,7 @@ static bool hfa_send_frame(struct cgpu_info *hashfast, uint8_t opcode, uint16_t struct hf_header *p = (struct hf_header *)packet; p->preamble = HF_PREAMBLE; - p->operation_code = opcode; + p->operation_code = hfa_cmds[opcode].cmd; p->chip_address = HF_GWQ_ADDRESS; p->core_address = 0; p->hdata = htole16(hdata);