Commit 803a18da22c8a008281ad2fc8fc37d706a07db56

Con Kolivas 2014-01-06T09:22:07

Set value of gpio pins to low on closing nanofury.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/driver-bitfury.c b/driver-bitfury.c
index ff4cffa..ad00c46 100644
--- a/driver-bitfury.c
+++ b/driver-bitfury.c
@@ -285,8 +285,10 @@ static void nf1_close(struct cgpu_info *bitfury)
 	int i;
 
 	/* Set all pins to input mode, ignoring return code */
-	for (i = 0; i < 9; i++)
+	for (i = 0; i < 9; i++) {
 		mcp->direction.pin[i] = MCP2210_GPIO_INPUT;
+		mcp->value.pin[i] = MCP2210_GPIO_PIN_LOW;
+	}
 	mcp2210_set_gpio_settings(bitfury, mcp);
 }