Browse Source

Trigger automatic rescans if an expected probe fails (assuming the device just needs more time to initialise)

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

+ 5 - 0
miner.c

@@ -10857,6 +10857,8 @@ void *probe_device_thread(void *p)
 			const size_t dnamelen = (colon - dname);
 			if (_probe_device_internal(info, dname, dnamelen))
 				return NULL;
+			else
+				bfg_need_detect_rescan = true;
 		}
 	}
 	
@@ -10893,6 +10895,8 @@ void *probe_device_thread(void *p)
 					continue;
 				if (drv->lowl_probe(info))
 					return NULL;
+				else
+					bfg_need_detect_rescan = true;
 			}
 		}
 	}
@@ -10923,6 +10927,7 @@ void *probe_device_thread(void *p)
 						if (drv->lowl_probe(info))
 							return NULL;
 					}
+					bfg_need_detect_rescan = true;
 					break;
 				}
 			}