Browse Source

Removed temperature output from metabank_api_extra_device_status().

Vicus-N 12 years ago
parent
commit
23e119eaef
1 changed files with 3 additions and 5 deletions
  1. 3 5
      driver-metabank.c

+ 3 - 5
driver-metabank.c

@@ -194,19 +194,17 @@ static bool metabank_get_stats(struct cgpu_info *cgpu)
 static struct api_data *metabank_api_extra_device_status(struct cgpu_info *cgpu)
 static struct api_data *metabank_api_extra_device_status(struct cgpu_info *cgpu)
 {
 {
 	struct api_data *root = NULL;
 	struct api_data *root = NULL;
-	float t, vc0, vc1;
+	float vc0, vc1;
 	struct bitfury_device * const bitfury = cgpu->device_data;
 	struct bitfury_device * const bitfury = cgpu->device_data;
 
 
 	root = api_add_uint(root, "Slot", &(bitfury->slot), false);
 	root = api_add_uint(root, "Slot", &(bitfury->slot), false);
 	root = api_add_int(root, "Clock Bits", (int*)&bitfury->osc6_bits, false);
 	root = api_add_int(root, "Clock Bits", (int*)&bitfury->osc6_bits, false);
 
 
-	t = tm_i2c_gettemp(bitfury->slot) * 0.1;
 	vc0 = tm_i2c_getcore0(bitfury->slot);
 	vc0 = tm_i2c_getcore0(bitfury->slot);
 	vc1 = tm_i2c_getcore1(bitfury->slot);
 	vc1 = tm_i2c_getcore1(bitfury->slot);
 
 
-	root = api_add_temp(root, "Slot Temp", &t, true);
-	root = api_add_temp(root, "Slot VC0", &vc0, true);
-	root = api_add_temp(root, "Slot VC1", &vc1, true);
+	root = api_add_volts(root, "Slot VC0", &vc0, true);
+	root = api_add_volts(root, "Slot VC1", &vc1, true);
 
 
 	return root;
 	return root;
 }
 }