Browse Source

Bugfix: ManageTUI: Allow 'I' key to be used by devices not supporting identify

For example, OpenCL uses it for Intensity
Luke Dashjr 12 years ago
parent
commit
73429d7be8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      miner.c

+ 3 - 1
miner.c

@@ -6062,7 +6062,7 @@ refresh:
 				if (drv->identify_device && drv->identify_device(cgpu))
 				if (drv->identify_device && drv->identify_device(cgpu))
 					msg = "Identify command sent\n";
 					msg = "Identify command sent\n";
 				else
 				else
-					msg = "Error: Identify not supported\n";
+					goto key_default;
 				goto refresh;
 				goto refresh;
 			case KEY_DOWN:
 			case KEY_DOWN:
 				if (selected_device >= total_devices - 1)
 				if (selected_device >= total_devices - 1)
@@ -6100,6 +6100,8 @@ refresh:
 			case '\n':
 			case '\n':
 				goto out;
 				goto out;
 			default:
 			default:
+				;
+key_default:
 				if (drv->proc_tui_handle_choice && likely(drv_ready(cgpu)))
 				if (drv->proc_tui_handle_choice && likely(drv_ready(cgpu)))
 				{
 				{
 					msg = drv->proc_tui_handle_choice(cgpu, input);
 					msg = drv->proc_tui_handle_choice(cgpu, input);