Browse Source

Name remainder of BFU usb commands used.

nfactor-troky
Con Kolivas 11 years ago
parent
commit
4f6c7ee0c1
  1. 4
      driver-bitfury.c
  2. 4
      usbutils.h

4
driver-bitfury.c

@ -23,7 +23,7 @@ static void bitfury_empty_buffer(struct cgpu_info *bitfury) @@ -23,7 +23,7 @@ static void bitfury_empty_buffer(struct cgpu_info *bitfury)
int amount;
do {
usb_read(bitfury, buf, 512, &amount, C_PING);
usb_read(bitfury, buf, 512, &amount, C_BF1_FLUSH);
} while (amount);
}
@ -48,7 +48,7 @@ static void bitfury_identify(struct cgpu_info *bitfury) @@ -48,7 +48,7 @@ static void bitfury_identify(struct cgpu_info *bitfury)
{
int amount;
usb_write(bitfury, "L", 1, &amount, C_PING);
usb_write(bitfury, "L", 1, &amount, C_BF1_IDENTIFY);
}
static bool bitfury_getinfo(struct cgpu_info *bitfury, struct bitfury_info *info)

4
usbutils.h

@ -333,7 +333,9 @@ struct cg_usb_info { @@ -333,7 +333,9 @@ struct cg_usb_info {
USB_ADD_COMMAND(C_BF1_GETRESET, "BF1GetReset") \
USB_ADD_COMMAND(C_BF1_REQWORK, "BF1RequestWork") \
USB_ADD_COMMAND(C_BF1_GETWORK, "BF1GetWork") \
USB_ADD_COMMAND(C_BF1_GETRES, "BF1GetResults")
USB_ADD_COMMAND(C_BF1_GETRES, "BF1GetResults") \
USB_ADD_COMMAND(C_BF1_FLUSH, "BF1Flush") \
USB_ADD_COMMAND(C_BF1_IDENTIFY, "BF1Identify")
/* Create usb_cmds enum from USB_PARSE_COMMANDS macro */
#define USB_ADD_COMMAND(X, Y) X,

Loading…
Cancel
Save