Skip to content

Commit

Permalink
- rename can_set_display_brightness => display_can_set_brightness
Browse files Browse the repository at this point in the history
Signed-off-by: Thilo Graf <[email protected]>
  • Loading branch information
svenhoefer authored and dbt1 committed Nov 2, 2017
1 parent 674ba19 commit 91fdb1e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/hardware/coolstream/hardware_caps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");
Expand All @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion lib/hardware/coolstream/hardware_caps.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion src/gui/vfd_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 91fdb1e

Please sign in to comment.