From e52762c57ad6bd74fad83c734e36ab3fa76b9677 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 7 Aug 2012 20:26:24 +1000 Subject: [PATCH] There is no point zeroing temperature in BFL if we fail to get a response, and we should register it as a HW error, suggesting throttling. --- driver-bitforce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver-bitforce.c b/driver-bitforce.c index 943a7d30..e1c01e12 100644 --- a/driver-bitforce.c +++ b/driver-bitforce.c @@ -350,7 +350,7 @@ static bool bitforce_get_temp(struct cgpu_info *bitforce) if (unlikely(!pdevbuf[0])) { applog(LOG_ERR, "BFL%i: Error: Get temp returned empty string/timed out", bitforce->device_id); - bitforce->temp = 0; + bitforce->hw_errors++; return false; }