Commit 8f97b209abda2eeb06a9e29e4b053828df17bb45

Con Kolivas 2014-01-06T17:31:21

Cancel any spi transfers on nf1 close

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-bitfury.c b/driver-bitfury.c
index ae8f5fd..402c9ef 100644
--- a/driver-bitfury.c
+++ b/driver-bitfury.c
@@ -284,6 +284,8 @@ static void nf1_close(struct cgpu_info *bitfury)
 	struct mcp_settings *mcp = &info->mcp;
 	int i;
 
+	mcp2210_spi_cancel(bitfury);
+
 	/* Set all pins to input mode, ignoring return code */
 	for (i = 0; i < 9; i++) {
 		mcp->direction.pin[i] = MCP2210_GPIO_INPUT;