Wait after sending a hfa shutdown to allow the device to properly shut down before possibly sending it more commands.
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)