Commit 781871bdaceb721c2f7597e98f4d5325584bef2e

Con Kolivas 2014-01-04T09:28:18

Set GPIO LED and power to high in nanofury driver.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/driver-bitfury.c b/driver-bitfury.c
index 7211019..d5fbf32 100644
--- a/driver-bitfury.c
+++ b/driver-bitfury.c
@@ -294,8 +294,12 @@ static bool nf1_detect_one(struct cgpu_info *bitfury, struct bitfury_info *info)
 	}
 	if (!mcp2210_set_gpio_pindir(bitfury, NF1_PIN_LED, MCP2210_GPIO_OUTPUT))
 		return ret;
+	if (!mcp2210_set_gpio_pinval(bitfury, NF1_PIN_LED, MCP2210_GPIO_PIN_HIGH))
+		return ret;
 	if (!mcp2210_set_gpio_pindir(bitfury, NF1_PIN_PWR_EN, MCP2210_GPIO_OUTPUT))
 		return ret;
+	if (!mcp2210_set_gpio_pinval(bitfury, NF1_PIN_PWR_EN, MCP2210_GPIO_PIN_HIGH))
+		return ret;
 
 	if (opt_debug) {
 		struct gpio_pin gp;