Browse Source

ManageTUI: Add generic Identify support

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

+ 8 - 0
miner.c

@@ -6021,6 +6021,8 @@ refresh:
 		wlogprint("[E]nable ");
 	if (cgpu->deven != DEV_DISABLED)
 		wlogprint("[D]isable ");
+	if (drv->identify_device)
+		wlogprint("[I]dentify ");
 	if (drv->proc_tui_wlogprint_choices && likely(cgpu->status != LIFE_INIT))
 		drv->proc_tui_wlogprint_choices(cgpu);
 	wlogprint("\n");
@@ -6056,6 +6058,12 @@ refresh:
 					msg = "Processor being enabled\n";
 				}
 				goto refresh;
+			case 'i': case 'I':
+				if (drv->identify_device && drv->identify_device(cgpu))
+					msg = "Identify command sent\n";
+				else
+					msg = "Error: Identify not supported\n";
+				goto refresh;
 			case KEY_DOWN:
 				if (selected_device >= total_devices - 1)
 					break;