From dceaa71a7b3bbdda72f59cdfa8deae54320b1b1c Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 14 Apr 2012 00:56:31 +1000 Subject: [PATCH] Make sure to disable devices with any status not being DEV_ENABLED to ensure that thermal cutoff code works as it was setting the status to DEV_RECOVER. --- cgminer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index cfb02161..4fde93fd 100644 --- a/cgminer.c +++ b/cgminer.c @@ -3600,7 +3600,7 @@ void *miner_thread(void *userdata) tv_lastupdate = tv_end; } - if (unlikely(mythr->pause || cgpu->deven == DEV_DISABLED)) { + if (unlikely(mythr->pause || cgpu->deven != DEV_ENABLED)) { applog(LOG_WARNING, "Thread %d being disabled", thr_id); mythr->rolling = mythr->cgpu->rolling = 0; applog(LOG_DEBUG, "Popping wakeup ping in miner thread");