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
dbcfbc2678
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-hashfast.c

+ 2 - 0
driver-hashfast.c

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