mbpfan-josie

Increase maximum sensors

2011 iMac has at least 50.  References #148.

4722e79e7272f5f02d2d6526a92819328dd110d2
Andrew Gaul <andrew@gaul.org> · 2019-10-24T15:42 · browse files at this commit

parents: 98a3497

diff --git a/src/mbpfan.c b/src/mbpfan.c
index 24f58b1..25aa537 100644
--- a/src/mbpfan.c
+++ b/src/mbpfan.c
@@ -19,8 +19,8 @@
  *
  *
  *  Notes:
- *    Assumes any number of processors, cores and fans (max. 6, 16, 12
- *    as defined in NUM_PROCESSORS, NUM_HWMONS, NUM_TEMP_INPUTS and NUM_FANS)
+ *    Assumes any number of processors, cores, sensors and fans
+ *    (as defined in NUM_PROCESSORS, NUM_HWMONS, NUM_TEMP_INPUTS and NUM_FANS)
  *    It uses only the temperatures from the processors as input.
  *    Requires coretemp and applesmc kernel modules to be loaded.
  *    Requires root use
@@ -58,7 +58,7 @@ int max_temp = 86;   // do not set it > 90
 // maximum number of processors etc supported
 #define NUM_PROCESSORS 6
 #define NUM_HWMONS 12
-#define NUM_TEMP_INPUTS 16
+#define NUM_TEMP_INPUTS 64
 #define NUM_FANS 10
 // sane defaults when user provides unexpected values
 #define MIN_FAN_SPEED_DEFAULT 500