aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/ScanSetup.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/Screens/ScanSetup.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/Screens/ScanSetup.py')
-rw-r--r--lib/python/Screens/ScanSetup.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/python/Screens/ScanSetup.py b/lib/python/Screens/ScanSetup.py
index e8d3781f..5becc898 100644
--- a/lib/python/Screens/ScanSetup.py
+++ b/lib/python/Screens/ScanSetup.py
@@ -254,6 +254,7 @@ class ScanSetup(Screen):
self.list.append(getConfigListEntry(_("Hierarchy mode"), config.scan.ter.hierarchy))
elif currentConfigSelectionElement(config.scan.typeterrestrial) == "complete":
self.list.append(getConfigListEntry(_("Clear before scan"), config.scan.clearallservices))
+ self.list.append(getConfigListEntry(_("Enable 5V for active antenna"), config.terrestrial.enable_5V))
# if (nimmanager.getNimType(config.scan.nims.value) == nimmanager.nimType["DVB-S"] and currentConfigSelectionElement(config.scan.type) == "single_transponder") or \
# (nimmanager.getNimType(config.scan.nims.value) == nimmanager.nimType["DVB-C"] and currentConfigSelectionElement(config.scan.typecable) == "single_transponder") or \
@@ -638,19 +639,29 @@ class ScanSimple(Screen):
tlist = []
nimcount = nimmanager.getNimSocketCount()
+ have_terrestrial = False
if nimcount > 0:
+ nimtype = nimmanager.getNimType(0)
scan_possible=True
config.scan = ConfigSubsection()
config.scan.clearallservices = configElement_nonSave("config.scan.clearallservices", configSelection, 0, (("no", _("no")), ("yes", _("yes")), ("yes_hold_feeds", _("yes (keep feeds)"))))
self.list.append(getConfigListEntry(_("Clear before scan"), config.scan.clearallservices))
nim = configElement_nonSave(0, configSelection, 0, (("yes", _("yes")), ("no", _("no"))))
- if nimmanager.getNimType(0) == nimmanager.nimType["DVB-S"] and not len(nimmanager.getSatListForNim(0)):
+ if nimtype == nimmanager.nimType["DVB-T"]:
+ have_terrestrial = True
+ elif nimtype == nimmanager.nimType["DVB-S"] and not len(nimmanager.getSatListForNim(0)):
scan_possible=False
if scan_possible:
self.list.append(getConfigListEntry(_("Scan NIM") + " 0 (" + nimmanager.getNimTypeName(0) + ")", nim))
+
if nimcount > 1 and self.ScanNimTwoNeeded():
nim = configElement_nonSave(1, configSelection, 0, (("yes", _("yes")), ("no", _("no"))))
self.list.append(getConfigListEntry(_("Scan NIM") + " 1 (" + nimmanager.getNimTypeName(1) + ")", nim))
+ if nimtype = nimmanager.getNimType(1) == nimmanager.nimType["DVB-T"]:
+ have_terrestrial = True
+
+ if have_terrestrial:
+ self.list.append(getConfigListEntry(_("Enable 5V for active antenna"), config.terrestrial.enable_5V))
self["config"] = ConfigList(self.list)
self["header"] = Label(_("Automatic Scan"))