diff --git a/lib/hardware/coolstream/hardware_caps.cpp b/lib/hardware/coolstream/hardware_caps.cpp index 156c6ea5d..8f75c2791 100644 --- a/lib/hardware/coolstream/hardware_caps.cpp +++ b/lib/hardware/coolstream/hardware_caps.cpp @@ -29,6 +29,7 @@ hw_caps_t *get_hwcaps(void) { caps.display_type = HW_DISPLAY_LINE_TEXT; caps.display_xres = 12; caps.display_yres = 0; + caps.display_can_deepstandby = (rev > 7); caps.can_set_display_brightness = 1; caps.can_ar_14_9 = 1; caps.can_ps_14_9 = 1; diff --git a/lib/hardware/coolstream/hardware_caps.h b/lib/hardware/coolstream/hardware_caps.h index aaea1334e..181922cce 100644 --- a/lib/hardware/coolstream/hardware_caps.h +++ b/lib/hardware/coolstream/hardware_caps.h @@ -33,6 +33,7 @@ typedef struct hw_caps display_type_t display_type; int display_xres; /* x resolution or chars per line */ int display_yres; + int display_can_deepstandby; int can_set_display_brightness; char boxvendor[64]; char boxname[64]; diff --git a/src/gui/vfd_setup.cpp b/src/gui/vfd_setup.cpp index 782f054eb..11402623c 100644 --- a/src/gui/vfd_setup.cpp +++ b/src/gui/vfd_setup.cpp @@ -203,12 +203,14 @@ int CVfdSetup::showBrightnessSetup() nc->setActivateObserver(this); mn_widget->addItem(nc); - if(cs_get_revision() > 7) { + if (g_info.hw_caps->display_can_deepstandby) + { nc = new CMenuOptionNumberChooser(LOCALE_LCDCONTROLER_BRIGHTNESSDEEPSTANDBY, &brightnessdeepstandby, true, 0, 15, this, CRCInput::RC_nokey, NULL, 0, 0, NONEXISTANT_LOCALE, true); nc->setHint("", LOCALE_MENU_HINT_VFD_BRIGHTNESSDEEPSTANDBY); nc->setActivateObserver(this); mn_widget->addItem(nc); } + nc = new CMenuOptionNumberChooser(LOCALE_LCDMENU_DIM_BRIGHTNESS, &g_settings.lcd_setting_dim_brightness, vfd_enabled, -1, 15, NULL, CRCInput::RC_nokey, NULL, 0, -1, LOCALE_OPTIONS_OFF, true); nc->setHint("", LOCALE_MENU_HINT_VFD_BRIGHTNESSDIM); nc->setActivateObserver(this);