mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
BFL stop 1st init command if no device
This commit is contained in:
parent
add1dfbe04
commit
3515b6e2e6
@ -85,6 +85,9 @@ static void bitforce_initialise(struct cgpu_info *bitforce, bool lock)
|
|||||||
if (lock)
|
if (lock)
|
||||||
mutex_lock(&bitforce->device_mutex);
|
mutex_lock(&bitforce->device_mutex);
|
||||||
|
|
||||||
|
if (bitforce->usbinfo.nodev)
|
||||||
|
goto failed;
|
||||||
|
|
||||||
// Reset
|
// Reset
|
||||||
err = usb_transfer(bitforce, FTDI_TYPE_OUT, FTDI_REQUEST_RESET,
|
err = usb_transfer(bitforce, FTDI_TYPE_OUT, FTDI_REQUEST_RESET,
|
||||||
FTDI_VALUE_RESET, bitforce->usbdev->found->interface, C_RESET);
|
FTDI_VALUE_RESET, bitforce->usbdev->found->interface, C_RESET);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user