Browse Source

Merge branch 'master' of github.com:ckolivas/cgminer

nfactor-troky
Con Kolivas 12 years ago
parent
commit
2b5467c44c
  1. 1
      libztex.c

1
libztex.c

@ -535,6 +535,7 @@ int libztex_selectFpga(struct libztex_device *ztex)
cnt = libusb_control_transfer(ztex->root->hndl, 0x40, 0x51, (uint16_t)number, 0, NULL, 0, 500); cnt = libusb_control_transfer(ztex->root->hndl, 0x40, 0x51, (uint16_t)number, 0, NULL, 0, 500);
if (unlikely(cnt < 0)) { if (unlikely(cnt < 0)) {
applog(LOG_ERR, "Ztex check device: Failed to set fpga with err %d", cnt); applog(LOG_ERR, "Ztex check device: Failed to set fpga with err %d", cnt);
ztex->root->selectedFpga = -1;
return cnt; return cnt;
} }
ztex->root->selectedFpga = number; ztex->root->selectedFpga = number;

Loading…
Cancel
Save