Browse Source

antminer: getstatus needs to read a result for every chip, but we don't use the output anyway, so just skip it

Luke Dashjr 11 years ago
parent
commit
c174de8ff2
1 changed files with 5 additions and 2 deletions
  1. 5 2
      driver-antminer.c

+ 5 - 2
driver-antminer.c

@@ -75,6 +75,8 @@ bool antminer_lowl_probe(const struct lowlevel_device_info * const info)
 	return vcom_lowl_probe_wrapper(info, antminer_detect_one);
 }
 
+// Not used for anything, and needs to read a result for every chip
+#if 0
 static
 char *antminer_get_clock(struct cgpu_info *cgpu, char *replybuf)
 {
@@ -118,6 +120,7 @@ char *antminer_get_clock(struct cgpu_info *cgpu, char *replybuf)
 	
 	return NULL;
 }
+#endif
 
 static
 const char *antminer_set_clock(struct cgpu_info * const cgpu, const char * const optname, const char * const setting, char * const replybuf, enum bfg_set_device_replytype * const out_success)
@@ -167,8 +170,8 @@ const char *antminer_set_clock(struct cgpu_info * const cgpu, const char * const
 	
 	// This is confirmed required in order for the clock change to "take"
 	cgsleep_ms(500);
-		
-	return antminer_get_clock(cgpu, replybuf);
+	
+	return NULL;
 }
 
 static