Browse Source

api.c pgaenable not re-enabling the device

Kano 13 years ago
parent
commit
d5d6b7799e
1 changed files with 1 additions and 3 deletions
  1. 1 3
      api.c

+ 1 - 3
api.c

@@ -1562,7 +1562,7 @@ static void pgaenable(__maybe_unused SOCKETTYPE c, char *param, bool isjson, __m
 #endif
 
 	for (i = 0; i < mining_threads; i++) {
-		pga = thr_info[i].cgpu->device_id;
+		pga = thr_info[i].cgpu->cgminer_id;
 		if (pga == dev) {
 			thr = &thr_info[i];
 			cgpu->deven = DEV_ENABLED;
@@ -1861,10 +1861,8 @@ static void gpuenable(__maybe_unused SOCKETTYPE c, char *param, bool isjson, __m
 				strcpy(io_buffer, message(MSG_GPUMRE, id, NULL, isjson));
 				return;
 			}
-
 			gpus[id].deven = DEV_ENABLED;
 			tq_push(thr->q, &ping);
-
 		}
 	}