From: Stefan Pluecken Date: Sun, 15 Jan 2006 15:36:07 +0000 (+0000) Subject: use textual representation of configElement for comparison for more readability and... X-Git-Tag: 2.6.0~4429 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/35b4469fbb9f5bf80bba60c29916057aaa3c5bd0 use textual representation of configElement for comparison for more readability and flexibility --- diff --git a/lib/python/Components/AVSwitch.py b/lib/python/Components/AVSwitch.py index f6fda3b8..0b285cfd 100644 --- a/lib/python/Components/AVSwitch.py +++ b/lib/python/Components/AVSwitch.py @@ -17,11 +17,11 @@ class AVSwitch: eAVSwitch.getInstance().setVideomode(value) def setWSS(self, value): - if value == 0: + if currentConfigSelectionElement(config.av.wss) == "off": writevalue = "off" - elif value == 1: + elif currentConfigSelectionElement(config.av.wss) == "auto": writevalue = "auto" - elif value == 2: + elif currentConfigSelectionElement(config.av.wss) == "auto_no4_3": writevalue = "auto(4:3_off)" try: file = open("/proc/stb/denc/0/wss", "w")