Browse Source

Merge branch 'bfgminer' of github.com:luke-jr/bfgminer into bfgminer

Luke Dashjr 13 years ago
parent
commit
c47ae8d682
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-x6500.c

+ 2 - 0
driver-x6500.c

@@ -466,6 +466,8 @@ void x6500_get_temperature(struct cgpu_info *x6500)
 		struct thr_info *thr = x6500->thr[i];
 		fpga = thr->cgpu_data;
 
+		if (!fpga) continue;
+
 		if (code[i] == 0xffff || !code[i]) {
 			fpga->temp = 0;
 			continue;