Browse Source

Add specific information when ADL detects error -10 saying the device is not enabled.

Con Kolivas 13 years ago
parent
commit
920c56c93b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      adl.c

+ 2 - 0
adl.c

@@ -241,6 +241,8 @@ void init_adl(int nDevs)
 		result = ADL_Adapter_ID_Get(iAdapterIndex, &lpAdapterID);
 		result = ADL_Adapter_ID_Get(iAdapterIndex, &lpAdapterID);
 		if (result != ADL_OK) {
 		if (result != ADL_OK) {
 			applog(LOG_INFO, "Failed to ADL_Adapter_ID_Get. Error %d", result);
 			applog(LOG_INFO, "Failed to ADL_Adapter_ID_Get. Error %d", result);
+			if (result == -10)
+				applog(LOG_INFO, "This error says the device is not enabled");
 			continue;
 			continue;
 		}
 		}