Browse Source

Bugfix: Allocate all new devices completely, before trying to activate any (since the first processor may control the secondary ones)

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

+ 6 - 0
miner.c

@@ -8766,8 +8766,14 @@ int scan_serial(const char *s)
 	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;