Browse Source

Bugfix: bitmain: Correct type of cgpu->temp reference

Luke Dashjr 10 years ago
parent
commit
568ca61c9b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-bitmain.c

+ 1 - 1
driver-bitmain.c

@@ -1133,7 +1133,7 @@ static void bitmain_inc_nvw(struct bitmain_info *info, struct thr_info *thr)
 	info->no_matching_work++;
 }
 
-static inline void record_temp_fan(struct bitmain_info *info, struct bitmain_rxstatus_data *bm, double *temp_avg)
+static inline void record_temp_fan(struct bitmain_info *info, struct bitmain_rxstatus_data *bm, float *temp_avg)
 {
 	int i = 0;
 	int maxfan = 0, maxtemp = 0;