diff options
| author | thedoc <thedoc@atom.(none)> | 2009-12-11 13:43:50 +0100 |
|---|---|---|
| committer | thedoc <thedoc@atom.(none)> | 2009-12-11 13:43:50 +0100 |
| commit | 48070d1e3868f6c7e5d61002f2b707249be5d016 (patch) | |
| tree | 27b0d8996a2e1ac49f61d8292c00ee87d981367b /lib/python | |
| parent | 84b36922b357db78b354ea85be700e2dbd15e5d0 (diff) | |
| download | enigma2-48070d1e3868f6c7e5d61002f2b707249be5d016.tar.gz enigma2-48070d1e3868f6c7e5d61002f2b707249be5d016.zip | |
save/revert all available fan configs, not just for fan 1
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Plugins/SystemPlugins/TempFanControl/plugin.py | 10 |
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): |
