projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02fb902
)
FatoryTest : set Maximum PWM(255) on starting
author
Chang.H.S
<jhs@dev3>
Fri, 4 Nov 2011 06:03:14 +0000
(15:03 +0900)
committer
Chang.H.S
<jhs@dev3>
Fri, 4 Nov 2011 06:04:38 +0000
(15:04 +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
077dc67
..
57ffa24
100755
(executable)
--- a/
lib/python/Plugins/SystemPlugins/FactoryTest/plugin.py
+++ b/
lib/python/Plugins/SystemPlugins/FactoryTest/plugin.py
@@
-246,6
+246,17
@@
class FactoryTest(Screen):
self.agingtimer = eTimer()
self.agingtimer.callback.append(self.agingCheck)
self.setSourceVar()
+ 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()
def createConfig(self):
tlist = []