aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/NimManager.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-06-26 21:46:10 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-06-26 21:46:10 +0000
commit8b6a8658b1ea5aa358947a488c80eff75295d0fb (patch)
treeb90badb653ba5e53b3251ea74d2febc601395bd7 /lib/python/Components/NimManager.py
parent31ee53b29f079a6e20688e20832896b497b19478 (diff)
downloadenigma2-8b6a8658b1ea5aa358947a488c80eff75295d0fb.tar.gz
enigma2-8b6a8658b1ea5aa358947a488c80eff75295d0fb.zip
add 5V handling for active DVB-T antennas (needs new drivers)
Diffstat (limited to 'lib/python/Components/NimManager.py')
-rw-r--r--lib/python/Components/NimManager.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py
index 8454bbe5..a4bcb80b 100644
--- a/lib/python/Components/NimManager.py
+++ b/lib/python/Components/NimManager.py
@@ -641,6 +641,8 @@ class NimManager:
pass
def InitNimManager(nimmgr):
+ have_terrestrial_tuner = False
+ config.terrestrial = ConfigSubsection()
config.Nims = []
for x in range(nimmgr.nimCount):
config.Nims.append(ConfigSubsection())
@@ -765,6 +767,7 @@ def InitNimManager(nimmgr):
elif slot.nimType == nimmgr.nimType["DVB-C"]:
nim.cable = configElement(cname + "cable", configSelection, 0, nimmgr.cablesList, False);
elif slot.nimType == nimmgr.nimType["DVB-T"]:
+ have_terrestrial_tuner = True
list = []
for x in nimmgr.terrestrialsList:
list.append(x[0])
@@ -772,6 +775,9 @@ def InitNimManager(nimmgr):
else:
print "pls add support for this frontend type!"
+ if have_terrestrial_tuner:
+ config.terrestrial.enable_5V = configElement("config.terrestrial.enable_5V", configSelection, 1, (("yes", _("Yes")), ("no", _("No"))), True);
+
nimmgr.sec = SecConfigure(nimmgr)
nimmanager = NimManager()