Commit aa1c5daa70b914fe8c8165a7566f9afada8537ac

Con Kolivas 2014-01-05T18:13:05

Get pin value after an nf1 spi reset.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-bitfury.c b/driver-bitfury.c
index 2900636..34d779f 100644
--- a/driver-bitfury.c
+++ b/driver-bitfury.c
@@ -434,6 +434,8 @@ static bool nf1_spi_reset(struct cgpu_info *bitfury, struct bitfury_info *info)
 	mcp->direction.pin[NF1_PIN_SCK_OVR] = MCP2210_GPIO_INPUT;
 	if (!mcp2210_set_gpio_settings(bitfury, mcp))
 		return false;
+	if (!mcp2210_get_gpio_pinval(bitfury, NF1_PIN_SCK_OVR, &r))
+		return false;
 
 	return true;
 }