Commit e4297d97950b2ffd73a54284e2a26b0a8bbf9907

Con Kolivas 2014-02-06T15:39:18

Wait after sending a hfa shutdown to allow the device to properly shut down before possibly sending it more commands.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 2bcb12c..7b25b71 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -456,6 +456,8 @@ static void hfa_send_shutdown(struct cgpu_info *hashfast)
 	if (hashfast->usbinfo.nodev)
 		return;
 	hfa_send_frame(hashfast, HF_USB_CMD(OP_USB_SHUTDOWN), 0, NULL, 0);
+	/* Wait to allow device to properly shut down. */
+	cgsleep_ms(1000);
 }
 
 static void hfa_clear_readbuf(struct cgpu_info *hashfast)