aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorthedoc <thedoc@atom.(none)>2009-12-11 13:44:28 +0100
committerthedoc <thedoc@atom.(none)>2009-12-11 13:44:28 +0100
commit3e5f00f255528524f61c276b9a3680599fc95136 (patch)
tree7c2788d8314ee6dec0d57f71125187a29709b835 /lib/python
parent6f1e7dff0f9ee7f56d48d3597d45d581057d6ce7 (diff)
parent48070d1e3868f6c7e5d61002f2b707249be5d016 (diff)
downloadenigma2-3e5f00f255528524f61c276b9a3680599fc95136.tar.gz
enigma2-3e5f00f255528524f61c276b9a3680599fc95136.zip
Merge branch 'fantempplugin' into experimental
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Plugins/SystemPlugins/TempFanControl/plugin.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/python/Plugins/SystemPlugins/TempFanControl/plugin.py b/lib/python/Plugins/SystemPlugins/TempFanControl/plugin.py
index 01c276a4..38e343f9 100644
--- a/lib/python/Plugins/SystemPlugins/TempFanControl/plugin.py
+++ b/lib/python/Plugins/SystemPlugins/TempFanControl/plugin.py
@@ -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):