projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
082a100
)
FactoryTest : fix bug, only fan speed up for uno,ultimo
author
Chang.H.S
<jhs@dev3>
Mon, 28 Nov 2011 08:08:56 +0000
(17:08 +0900)
committer
Chang.H.S
<jhs@dev3>
Mon, 28 Nov 2011 08:08:56 +0000
(17:08 +0900)
lib/python/Plugins/SystemPlugins/FactoryTest/plugin.py
patch
|
blob
|
history
diff --git
a/lib/python/Plugins/SystemPlugins/FactoryTest/plugin.py
b/lib/python/Plugins/SystemPlugins/FactoryTest/plugin.py
index
57ffa24
..
1a36c3e
100755
(executable)
--- a/
lib/python/Plugins/SystemPlugins/FactoryTest/plugin.py
+++ b/
lib/python/Plugins/SystemPlugins/FactoryTest/plugin.py
@@
-249,14
+249,15
@@
class FactoryTest(Screen):
self.FanSpeedUp(255)
def FanSpeedUp(self,value):
self.FanSpeedUp(255)
def FanSpeedUp(self,value):
- if value <0:
- value = 0
- elif value >255:
- value = 255
- print "[FactoryTest, FanSpeedUp] setPWM to : %d"%value
- f = open("/proc/stb/fp/fan_pwm", "w")
- f.write("%x" % value)
- f.close()
+ if self.model in (3,4): # uno or ultimo
+ if value <0:
+ value = 0
+ elif value >255:
+ value = 255
+ print "[FactoryTest, FanSpeedUp] setPWM to : %d"%value
+ f = open("/proc/stb/fp/fan_pwm", "w")
+ f.write("%x" % value)
+ f.close()
def createConfig(self):
tlist = []
def createConfig(self):
tlist = []