Merge commit 'origin/bug_112_enable_extensions_manager' into experimental
[enigma2.git] / lib / python / Plugins / SystemPlugins / TempFanControl / plugin.py
index 01c276a49900553e51117240e31593c9dc7a7f87..38e343f9c818e84fd4baee4007b0dcbeee7884a2 100644 (file)
@@ -138,13 +138,15 @@ class TempFanControl(Screen, ConfigListScreen):
                }, -1)
                
        def save(self):
-               fancontrol.getConfig(0).vlt.save()
-               fancontrol.getConfig(0).pwm.save()
+               for count in range(fancontrol.getFanCount()):
+                       fancontrol.getConfig(count).vlt.save()
+                       fancontrol.getConfig(count).pwm.save()
                self.close()
                
        def revert(self):
-               fancontrol.getConfig(0).vlt.load()
-               fancontrol.getConfig(0).pwm.load()
+               for count in range(fancontrol.getFanCount()):
+                       fancontrol.getConfig(count).vlt.load()
+                       fancontrol.getConfig(count).pwm.load()
                self.close()
                
 def main(session, **kwargs):