Browse Source

Bugfix: Scan for ft232r devices later, after console lock and other mutexes are initialized properly

Luke Dashjr 13 years ago
parent
commit
8abe941963
1 changed files with 4 additions and 3 deletions
  1. 4 3
      miner.c

+ 4 - 3
miner.c

@@ -6461,9 +6461,6 @@ int main(int argc, char *argv[])
 #ifdef HAVE_LIBUSB
 #ifdef HAVE_LIBUSB
         libusb_init(NULL);
         libusb_init(NULL);
 #endif
 #endif
-#ifdef USE_X6500
-	ft232r_scan();
-#endif
 
 
 	mutex_init(&hash_lock);
 	mutex_init(&hash_lock);
 	mutex_init(&qd_lock);
 	mutex_init(&qd_lock);
@@ -6566,6 +6563,10 @@ int main(int argc, char *argv[])
 		successful_connect = true;
 		successful_connect = true;
 	}
 	}
 
 
+#ifdef USE_X6500
+	ft232r_scan();
+#endif
+
 #ifdef HAVE_CURSES
 #ifdef HAVE_CURSES
 	if (opt_realquiet || devices_enabled == -1)
 	if (opt_realquiet || devices_enabled == -1)
 		use_curses = false;
 		use_curses = false;