mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
vfd: rework vfd menu (use ItemSlider), vfdcontroler deprecated
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1420 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -87,10 +87,10 @@ void CVFD::count_down() {
|
||||
if (timeout_cnt > 0) {
|
||||
timeout_cnt--;
|
||||
if (timeout_cnt == 0) {
|
||||
if (atoi(g_settings.lcd_setting_dim_brightness) > 0) {
|
||||
if (g_settings.lcd_setting_dim_brightness > -1) {
|
||||
// save lcd brightness, setBrightness() changes global setting
|
||||
int b = g_settings.lcd_setting[SNeutrinoSettings::LCD_BRIGHTNESS];
|
||||
setBrightness(atoi(g_settings.lcd_setting_dim_brightness));
|
||||
setBrightness(g_settings.lcd_setting_dim_brightness);
|
||||
g_settings.lcd_setting[SNeutrinoSettings::LCD_BRIGHTNESS] = b;
|
||||
} else {
|
||||
setPower(0);
|
||||
@@ -102,7 +102,7 @@ void CVFD::count_down() {
|
||||
void CVFD::wake_up() {
|
||||
if (atoi(g_settings.lcd_setting_dim_time) > 0) {
|
||||
timeout_cnt = atoi(g_settings.lcd_setting_dim_time);
|
||||
atoi(g_settings.lcd_setting_dim_brightness) > 0 ?
|
||||
g_settings.lcd_setting_dim_brightness > -1 ?
|
||||
setBrightness(g_settings.lcd_setting[SNeutrinoSettings::LCD_BRIGHTNESS]) : setPower(1);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user