Commit 311420db9dcd35f157c4c255ae890bc3f32f6f3f

Con Kolivas 2011-09-07T10:03:06

Flag adl as active if any card is successfully activated.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/adl.c b/adl.c
index 2605956..08789ea 100644
--- a/adl.c
+++ b/adl.c
@@ -336,9 +336,10 @@ void init_adl(int nDevs)
 			ga->autoengine = true;
 
 		gpus[gpu].has_adl = true;
-	}
 
-	adl_active = true;
+		/* Flag adl as active if any card is successfully activated */
+		adl_active = true;
+	}
 }
 
 static inline float __gpu_temp(struct gpu_adl *ga)