Browse Source

Bugfix: Prefer Sapphire over Emerald for -S erupter:*

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

+ 2 - 0
driver-erupter.c

@@ -61,7 +61,9 @@ static void erupter_detect()
 {
 {
 	erupter_drv_init();
 	erupter_drv_init();
 	// Actual serial detection is handled by Icarus driver
 	// Actual serial detection is handled by Icarus driver
+	erupter_drv_emerald.dname = "eruptere";  // temporary, so erupter:all is treated as Sapphire
 	serial_detect_auto_byname(&erupter_drv_emerald, erupter_emerald_detect_one, erupter_emerald_detect_auto);
 	serial_detect_auto_byname(&erupter_drv_emerald, erupter_emerald_detect_one, erupter_emerald_detect_auto);
+	erupter_drv_emerald.dname = "erupter";
 	serial_detect_auto_byname(&erupter_drv, erupter_detect_one, erupter_detect_auto);
 	serial_detect_auto_byname(&erupter_drv, erupter_detect_one, erupter_detect_auto);
 }
 }