diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-12-01 10:32:01 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-12-01 10:32:01 +0100 |
| commit | c72b0788e404a940f29888a696756d6b4cd6644f (patch) | |
| tree | f0ec009a52d9468288ef9e4e8a98a5c94813dc4f /lib/python/Components | |
| parent | 111874bbd87063dc52d061bde1d74694c5c5e092 (diff) | |
| download | enigma2-c72b0788e404a940f29888a696756d6b4cd6644f.tar.gz enigma2-c72b0788e404a940f29888a696756d6b4cd6644f.zip | |
Components/Lcd.py: use 1 instead of 0 for Oled standby default value (with new drivers the oled is completely disabled on lowest step)
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/Lcd.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/python/Components/Lcd.py b/lib/python/Components/Lcd.py index 0e501237..7d27c097 100644 --- a/lib/python/Components/Lcd.py +++ b/lib/python/Components/Lcd.py @@ -42,9 +42,18 @@ def InitLcd(): def setLCDinverted(configElement): ilcd.setInverted(configElement.value); + standby_default = 0 + ilcd = LCD() - config.lcd.standby = ConfigSlider(default=0, limits=(0, 10)) + if not ilcd.isOled(): + config.lcd.contrast = ConfigSlider(default=5, limits=(0, 20)) + config.lcd.contrast.addNotifier(setLCDcontrast); + else: + config.lcd.contrast = ConfigNothing() + standby_default = 1 + + config.lcd.standby = ConfigSlider(default=standby_default, limits=(0, 10)) config.lcd.standby.addNotifier(setLCDbright); config.lcd.standby.apply = lambda : setLCDbright(config.lcd.standby) @@ -53,12 +62,6 @@ def InitLcd(): config.lcd.bright.apply = lambda : setLCDbright(config.lcd.bright) config.lcd.bright.callNotifiersOnSaveAndCancel = True - if not ilcd.isOled(): - config.lcd.contrast = ConfigSlider(default=5, limits=(0, 20)) - config.lcd.contrast.addNotifier(setLCDcontrast); - else: - config.lcd.contrast = ConfigNothing() - config.lcd.invert = ConfigYesNo(default=False) config.lcd.invert.addNotifier(setLCDinverted); else: |
