Commit a9eb833afb3f9aa89d2b8bcbb522804cf6b275ac

Con Kolivas 2012-06-27T04:39:59

Merge pull request #242 from kanoi/master api.c allow unwell devices to be enabled so they can be cured

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/api.c b/api.c
index ff26e54..ac5b9a6 100644
--- a/api.c
+++ b/api.c
@@ -1174,10 +1174,12 @@ static void pgaenable(__maybe_unused SOCKETTYPE c, char *param, bool isjson)
 		return;
 	}
 
+#if 0 /* A DISABLED device wont change status FIXME: should disabling make it WELL? */
 	if (cgpu->status != LIFE_WELL) {
 		strcpy(io_buffer, message(MSG_PGAUNW, id, NULL, isjson));
 		return;
 	}
+#endif
 
 	for (i = 0; i < mining_threads; i++) {
 		pga = thr_info[i].cgpu->device_id;