support up to 8 fan/temp sensors
[vuplus_dvbapp] / lib / python / Components / FanControl.py
index d7986c2..7a40227 100644 (file)
@@ -23,8 +23,8 @@ class FanControl:
                        default_vlt = self.getVoltage(fanid)
                        default_pwm = self.getPWM(fanid)
                        fan = ConfigSubsection()
                        default_vlt = self.getVoltage(fanid)
                        default_pwm = self.getPWM(fanid)
                        fan = ConfigSubsection()
-                       fan.vlt = ConfigSlider(default = default_vlt, increment = 10, limits = (0, 255))
-                       fan.pwm = ConfigSlider(default = default_vlt, increment = 10, limits = (0, 255))
+                       fan.vlt = ConfigSlider(default = 16, increment = 5, limits = (0, 255))
+                       fan.pwm = ConfigSlider(default = 0, increment = 5, limits = (0, 255))
                        fan.vlt.addNotifier(boundFunction(setVlt, self, fanid))
                        fan.pwm.addNotifier(boundFunction(setPWM, self, fanid))
                        config.fans.append(fan)
                        fan.vlt.addNotifier(boundFunction(setVlt, self, fanid))
                        fan.pwm.addNotifier(boundFunction(setPWM, self, fanid))
                        config.fans.append(fan)