Browse Source

Support matching --scan with lowlevel devid

Luke Dashjr 12 years ago
parent
commit
f3aaeee706
1 changed files with 1 additions and 0 deletions
  1. 1 0
      miner.c

+ 1 - 0
miner.c

@@ -10615,6 +10615,7 @@ bool _probe_device_match(const struct lowlevel_device_info * const info, const c
 	if (!(false
 	if (!(false
 		|| (info->serial && !strcasecmp(ser, info->serial))
 		|| (info->serial && !strcasecmp(ser, info->serial))
 		|| (info->path   && !strcasecmp(ser, info->path  ))
 		|| (info->path   && !strcasecmp(ser, info->path  ))
+		|| (info->devid  && !strcasecmp(ser, info->devid ))
 	))
 	))
 	{
 	{
 		char *devid = devpath_to_devid(ser);
 		char *devid = devpath_to_devid(ser);