vfd-setup: fix brightness setup for CST's boxmodel "Link" ...

and hide the brightness menu for all "Trinity" models. There's no display.


Origin commit data
------------------
Branch: ni/coolstream
Commit: c0d367dca9
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-12 (Mon, 12 Jun 2017)

Origin message was:
------------------
- vfd-setup: fix brightness setup for CST's boxmodel "Link" ...

and hide the brightness menu for all "Trinity" models. There's no display.


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-06-12 13:14:32 +02:00
parent 9147358eef
commit e4f4307eb6
4 changed files with 11 additions and 5 deletions

View File

@@ -1007,7 +1007,7 @@ lcd4l_weather Wetter im Standby-Modus
lcd_info_line Zeige in Infozeile
lcd_info_line_channel Kanalname
lcd_info_line_clock Uhrzeit
lcdcontroler.brightness normale
lcdcontroler.brightness Normalbetrieb
lcdcontroler.brightnessdeepstandby Deep-Standby
lcdcontroler.brightnessstandby Standby
lcdmenu.dim_brightness nach Dimm-Timeout

View File

@@ -1007,9 +1007,9 @@ lcd4l_weather Weather in Standby-Mode
lcd_info_line show in infoline
lcd_info_line_channel Channelname
lcd_info_line_clock clock
lcdcontroler.brightness normal Brightness
lcdcontroler.brightnessdeepstandby DeepStandby Brightness
lcdcontroler.brightnessstandby Standby Brightness
lcdcontroler.brightness Normal mode
lcdcontroler.brightnessdeepstandby Deep standby
lcdcontroler.brightnessstandby Standby
lcdmenu.dim_brightness Brightness after dim timeout
lcdmenu.dim_time Dim timeout
lcdmenu.head VFD/LED Settings

View File

@@ -75,6 +75,7 @@ hw_caps_t *get_hwcaps(void) {
strcpy(caps.boxname, "Trinity V2");
strcpy(caps.boxarch, "Kronos");
}
caps.can_set_display_brightness = 0;
break;
case 12:
strcpy(caps.boxname, "Zee2");
@@ -87,6 +88,7 @@ hw_caps_t *get_hwcaps(void) {
case 14:
strcpy(caps.boxname, "Trinity Duo");
strcpy(caps.boxarch, "Kronos");
caps.can_set_display_brightness = 0;
break;
default:
strcpy(caps.boxname, "UNKNOWN_BOX");

View File

@@ -129,12 +129,16 @@ int CVfdSetup::showSetup()
vfds->addItem(mf);
}
if (CVFD::getInstance()->has_lcd) {
if (g_info.hw_caps->can_set_display_brightness)
{
//vfd brightness menu
mf = new CMenuForwarder(LOCALE_LCDMENU_LCDCONTROLER, vfd_enabled, NULL, this, "brightness", CRCInput::RC_green);
mf->setHint("", LOCALE_MENU_HINT_VFD_BRIGHTNESS_SETUP);
vfds->addItem(mf);
}
if (CVFD::getInstance()->has_lcd)
{
if (cs_get_revision() == 9) // Tank only
{
//backlight menu