Browse Source

Merge branch 'hotplug3' into bfgminer

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

+ 4 - 1
miner.c

@@ -10809,6 +10809,7 @@ void *probe_device_thread(void *p)
 			if (_probe_device_internal(info, dname, dnamelen))
 				return NULL;
 			else
+			if (opt_hotplug)
 				bfg_need_detect_rescan = true;
 		}
 	}
@@ -10847,6 +10848,7 @@ void *probe_device_thread(void *p)
 				if (drv->lowl_probe(info))
 					return NULL;
 				else
+				if (opt_hotplug)
 					bfg_need_detect_rescan = true;
 			}
 		}
@@ -10878,7 +10880,8 @@ void *probe_device_thread(void *p)
 						if (drv->lowl_probe(info))
 							return NULL;
 					}
-					bfg_need_detect_rescan = true;
+					if (opt_hotplug)
+						bfg_need_detect_rescan = true;
 					break;
 				}
 			}