projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
84b3692
)
save/revert all available fan configs, not just for fan 1
author
thedoc
<thedoc@atom.(none)>
Fri, 11 Dec 2009 12:43:50 +0000
(13:43 +0100)
committer
thedoc
<thedoc@atom.(none)>
Fri, 11 Dec 2009 12:43:50 +0000
(13:43 +0100)
lib/python/Plugins/SystemPlugins/TempFanControl/plugin.py
patch
|
blob
|
history
diff --git
a/lib/python/Plugins/SystemPlugins/TempFanControl/plugin.py
b/lib/python/Plugins/SystemPlugins/TempFanControl/plugin.py
index
01c276a
..
38e343f
100644
(file)
--- 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):
}, -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):
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):
self.close()
def main(session, **kwargs):