From 3515b6e2e6407f07d84d92aaef0d8511fb263ebb Mon Sep 17 00:00:00 2001 From: Kano Date: Thu, 21 Feb 2013 07:35:39 +1100 Subject: [PATCH] BFL stop 1st init command if no device --- driver-bitforce.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/driver-bitforce.c b/driver-bitforce.c index b7f238b9..228fa5e7 100644 --- a/driver-bitforce.c +++ b/driver-bitforce.c @@ -85,6 +85,9 @@ static void bitforce_initialise(struct cgpu_info *bitforce, bool lock) if (lock) mutex_lock(&bitforce->device_mutex); + if (bitforce->usbinfo.nodev) + goto failed; + // Reset err = usb_transfer(bitforce, FTDI_TYPE_OUT, FTDI_REQUEST_RESET, FTDI_VALUE_RESET, bitforce->usbdev->found->interface, C_RESET);