Browse Source

hashfast: Check devices with Product matching "GoldenNonce" so we have a vendor-neutral way to detect them

Luke Dashjr 11 years ago
parent
commit
8cb233b150
2 changed files with 2 additions and 1 deletions
  1. 1 0
      70-bfgminer.rules.in
  2. 1 1
      driver-hashfast.c

+ 1 - 0
70-bfgminer.rules.in

@@ -13,6 +13,7 @@ LABEL="bfgminer_start"
 @USE_HASHBUSTER_TRUE@ENV{ID_MODEL}=="*HashBuster*", GOTO="bfgminer_add"
 @USE_HASHBUSTERUSB_TRUE@ENV{ID_MODEL}=="*HashBuster*", GOTO="bfgminer_add"
 @USE_HASHFAST_TRUE@ENV{idVendor}=="297c", ENV{manufacturer}=="*HashFast*", GOTO="bfgminer_add"
+@USE_HASHFAST_TRUE@ENV{ID_MODEL}=="*GoldenNonce*", GOTO="bfgminer_add"
 @HAS_KLONDIKE_TRUE@ENV{idVendor}=="04d8", ENV{idProduct}=="f60a", ENV{manufacturer}=="*Klondike*", GOTO="bfgminer_add"
 @HAS_KLONDIKE_TRUE@ENV{idVendor}=="fa05", ENV{idProduct}=="0001", ENV{manufacturer}=="*HashBuster*", GOTO="bfgminer_add"
 @HAS_LITTLEFURY_TRUE@ENV{ID_MODEL}=="*LittleFury*", GOTO="bfgminer_add"

+ 1 - 1
driver-hashfast.c

@@ -204,7 +204,7 @@ static
 bool hashfast_lowl_match(const struct lowlevel_device_info * const info)
 {
 	if (lowlevel_match_product(info, "GoldenNonce"))
-		return true; UDEV
+		return true;
 	return (info->manufacturer && strstr(info->manufacturer, "HashFast"));
 }