Commit cb3158d21c1cebb585ef41c67ba881d0d063495e

Con Kolivas 2014-02-03T21:40:15

Add fanspeed to hfa api output and set initial fanspeed to 10%

diff --git a/driver-hashfast.c b/driver-hashfast.c
index ff8db27..c0e7c65 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -1274,6 +1274,7 @@ static struct api_data *hfa_api_stats(struct cgpu_info *cgpu)
 	root = api_add_int(root, "inflight target", &varint, true);
 	varint = db->sequence_modulus;
 	root = api_add_int(root, "sequence modulus", &varint, true);
+	root = api_add_int(root, "fan percent", &info->fanspeed, false);
 
 	s1 = &info->stats1;
 	root = api_add_uint64(root, "rx preambles", &s1->usb_rx_preambles, false);
diff --git a/driver-hashfast.h b/driver-hashfast.h
index acc89b4..b35a8cb 100644
--- a/driver-hashfast.h
+++ b/driver-hashfast.h
@@ -32,7 +32,7 @@ int opt_hfa_fan_min;
 #define HFA_TEMP_OVERHEAT 90
 #define HFA_TEMP_TARGET 85
 #define HFA_TEMP_HYSTERESIS 3
-#define HFA_FAN_DEFAULT 33
+#define HFA_FAN_DEFAULT 10
 #define HFA_FAN_MAX 100
 #define HFA_FAN_MIN 0