- rename can_set_display_brightness => display_can_set_brightness

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-11-01 15:17:52 +01:00
committed by Thilo Graf
parent 674ba19c03
commit 91fdb1ef6c
3 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ hw_caps_t *get_hwcaps(void) {
caps.display_xres = 12;
caps.display_yres = 0;
caps.display_can_deepstandby = (rev > 7);
caps.can_set_display_brightness = 1;
caps.display_can_set_brightness = 1;
caps.can_ar_14_9 = 1;
caps.can_ps_14_9 = 1;
caps.force_tuner_2G = 0;
@@ -67,7 +67,7 @@ hw_caps_t *get_hwcaps(void) {
strcpy(caps.boxname, "Trinity V2");
strcpy(caps.boxarch, "Kronos");
}
caps.can_set_display_brightness = 0;
caps.display_can_set_brightness = 0;
break;
case 12:
strcpy(caps.boxname, "Zee2");
@@ -80,7 +80,7 @@ hw_caps_t *get_hwcaps(void) {
case 14:
strcpy(caps.boxname, "Trinity Duo");
strcpy(caps.boxarch, "Kronos");
caps.can_set_display_brightness = 0;
caps.display_can_set_brightness = 0;
break;
default:
strcpy(caps.boxname, "UNKNOWN_BOX");

View File

@@ -34,7 +34,7 @@ typedef struct hw_caps
int display_xres; /* x resolution or chars per line */
int display_yres;
int display_can_deepstandby;
int can_set_display_brightness;
int display_can_set_brightness;
char boxvendor[64];
char boxname[64];
char boxarch[64];

View File

@@ -127,7 +127,7 @@ int CVfdSetup::showSetup()
vfds->addItem(mf);
}
if (g_info.hw_caps->can_set_display_brightness)
if (g_info.hw_caps->display_can_set_brightness)
{
//vfd brightness menu
mf = new CMenuForwarder(LOCALE_LCDMENU_LCDCONTROLER, vfd_enabled, NULL, this, "brightness", CRCInput::RC_green);