Browse Source

Merge branch 'hotplug2' into bfgminer

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

+ 6 - 0
miner.c

@@ -10970,8 +10970,14 @@ int create_new_cgpus(void (*addfunc)(void*), void *arg)
 	for (i = 0; i < total_devices_new; ++i)
 	{
 		cgpu = devices_new[i];
+		
 		load_temp_config_cgpu(cgpu, &dummy, &dummy);
 		allocate_cgpu(cgpu, &k);
+	}
+	for (i = 0; i < total_devices_new; ++i)
+	{
+		cgpu = devices_new[i];
+		
 		start_cgpu(cgpu);
 		register_device(cgpu);
 		++total_devices;