aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorRonny Strutz <ronny.strutz@multimedia-labs.de>2005-11-11 14:24:51 +0000
committerRonny Strutz <ronny.strutz@multimedia-labs.de>2005-11-11 14:24:51 +0000
commitc988d4c237e871138360bbfd73ff92215904eb70 (patch)
tree6d98cc1b3c887c1c650b7a96b4cbd8cf217a9c68 /lib/python
parentbe91d1cca13a27bfef946889c1e830f93b1f39bc (diff)
downloadenigma2-c988d4c237e871138360bbfd73ff92215904eb70.tar.gz
enigma2-c988d4c237e871138360bbfd73ff92215904eb70.zip
fix tunerlist, force both tuners as available
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/NimManager.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py
index 09928d07..8bbe2810 100644
--- a/lib/python/Components/NimManager.py
+++ b/lib/python/Components/NimManager.py
@@ -124,6 +124,8 @@ class NimManager:
#FIXME get it from /proc
if slotID == 0:
return self.nimType["DVB-S"]
+ elif slotID == 1:
+ return self.nimType["DVB-S"]
else:
return self.nimType["empty/unknown"]
@@ -195,9 +197,10 @@ class NimManager:
#print "nimDiseqcModeChanged set to " + str(mode)
pass
def nimPortAChanged(self, slotid, val):
- #print "nimDiseqcA set to " + str(val)
+ #print "nimDiseqcA set to " + str(slotid) + " val:" + str(val)
pass
def nimPortBChanged(self, slotid, val):
+ #print "nimDiseqcA set to " + str(slotid) + " val:" + str(val)
#print "nimDiseqcB set to " + str(val)
pass
def nimPortCChanged(self, slotid, val):
@@ -209,8 +212,10 @@ class NimManager:
def InitNimManager(nimmgr):
- config.Nims = [ConfigSubsection()] * nimmgr.nimCount
-
+ config.Nims = []
+ for x in range(nimmgr.nimCount):
+ config.Nims.append(ConfigSubsection())
+
def nimConfigModeChanged(slotid, configElement):
nimmgr.nimConfigModeChanged(slotid, configElement.value)
def nimDiseqcModeChanged(slotid, configElement):
@@ -243,13 +248,13 @@ def InitNimManager(nimmgr):
#perhaps the instance of the slot is more useful?
nim.configMode.addNotifier(boundFunction(nimConfigModeChanged,x))
nim.diseqcMode.addNotifier(boundFunction(nimDiseqcModeChanged,x))
- nim.diseqcA.addNotifier(boundFunction(nimPortAChanged,x))
+ nim.diseqcA.addNotifier(boundFunction(nimPortAChanged,int(x)))
nim.diseqcB.addNotifier(boundFunction(nimPortBChanged,x))
nim.diseqcC.addNotifier(boundFunction(nimPortCChanged,x))
nim.diseqcD.addNotifier(boundFunction(nimPortDChanged,x))
else:
print "pls add support for this frontend type!"
-
+
nimmgr.sec = SecConfigure(nimmgr)
nimmanager = NimManager()