Browse Source

Probe erupter before icarus, since they are far more common now

Luke Dashjr 12 years ago
parent
commit
fb510cd7c6
2 changed files with 3 additions and 3 deletions
  1. 2 2
      driver-erupter.c
  2. 1 1
      driver-icarus.c

+ 2 - 2
driver-erupter.c

@@ -99,13 +99,13 @@ static void erupter_drv_init()
 	erupter_drv.lowl_match = erupter_lowl_match;
 	erupter_drv.lowl_match = erupter_lowl_match;
 	erupter_drv.lowl_probe = erupter_lowl_probe;
 	erupter_drv.lowl_probe = erupter_lowl_probe;
 	erupter_drv.identify_device = erupter_identify;
 	erupter_drv.identify_device = erupter_identify;
-	++erupter_drv.probe_priority;
+	erupter_drv.probe_priority = -120;
 	
 	
 	erupter_drv_emerald = erupter_drv;
 	erupter_drv_emerald = erupter_drv;
 	erupter_drv_emerald.name = "BEE";
 	erupter_drv_emerald.name = "BEE";
 	erupter_drv.lowl_match = erupter_emerald_lowl_match;
 	erupter_drv.lowl_match = erupter_emerald_lowl_match;
 	erupter_drv.lowl_probe = erupter_emerald_lowl_probe;
 	erupter_drv.lowl_probe = erupter_emerald_lowl_probe;
-	++erupter_drv_emerald.probe_priority;
+	erupter_drv_emerald.probe_priority = -119;
 }
 }
 
 
 struct device_drv erupter_drv = {
 struct device_drv erupter_drv = {

+ 1 - 1
driver-icarus.c

@@ -1318,7 +1318,7 @@ const struct bfg_set_device_definition icarus_set_device_funcs[] = {
 struct device_drv icarus_drv = {
 struct device_drv icarus_drv = {
 	.dname = "icarus",
 	.dname = "icarus",
 	.name = "ICA",
 	.name = "ICA",
-	.probe_priority = -120,
+	.probe_priority = -115,
 	.lowl_probe = icarus_lowl_probe,
 	.lowl_probe = icarus_lowl_probe,
 	.get_api_stats = icarus_drv_stats,
 	.get_api_stats = icarus_drv_stats,
 	.thread_prepare = icarus_prepare,
 	.thread_prepare = icarus_prepare,