Commit 6d33bf7e17b1df3782ffc50a3fc64bea43568565

Con Kolivas 2014-02-24T08:03:25

Reset opt hfa dfu boot after it's used.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 788d29d..6dec809 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -730,6 +730,7 @@ static struct cgpu_info *hfa_detect_one(libusb_device *dev, struct usb_find_devi
 	if (opt_hfa_dfu_boot) {
 		hfa_dfu_boot(hashfast);
 		hashfast = usb_free_cgpu(hashfast);
+		opt_hfa_dfu_boot = false;
 		return NULL;
 	}
 	if (!hfa_detect_common(hashfast)) {