Browse Source

Send correct command with hfa_send_frame in hashfast driver.

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

+ 1 - 1
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;
 	struct hf_header *p = (struct hf_header *)packet;
 
 
 	p->preamble = HF_PREAMBLE;
 	p->preamble = HF_PREAMBLE;
-	p->operation_code = opcode;
+	p->operation_code = hfa_cmds[opcode].cmd;
 	p->chip_address = HF_GWQ_ADDRESS;
 	p->chip_address = HF_GWQ_ADDRESS;
 	p->core_address = 0;
 	p->core_address = 0;
 	p->hdata = htole16(hdata);
 	p->hdata = htole16(hdata);