Extending the OLED screens

Okay so there is a bug in the original script in the get_fanspeed function.

The code calls the get_fanspeed function twice, once with the CPU temp, to get the fan speed requirements from that list, and once with the MAX hdd temp.

The maximum of these two calls is then used to set the fan speed in the temp_check function. This is all good.

The issue is that in the get_fanspeed function while processing temperatures, if we are above one of the settings the code will always return 25.

So assume you have argononed-hdd.conf setup like:

35=0
45=50
50=100

When you HDD temp is between 35 and 44.999 the fan speed will be set to 25% not 0. There are two things you can do to prevent this.

  1. Make sure that neither configuration file has a temperature that you want the fan running at 0%
  2. Make a code change.

Since the purpose of the configuration file is to drive the fans, I’m going to fix the code and remove the 25% minimum.