From db6f4ba08dda75f63d6c133ecc437c0edea0db90 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Thu, 12 Oct 2017 00:36:45 +0200 Subject: [PATCH] armbox: fix dimming vfd --- src/driver/simple_display.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/driver/simple_display.cpp b/src/driver/simple_display.cpp index 43a6b35e7..8f32b99a7 100644 --- a/src/driver/simple_display.cpp +++ b/src/driver/simple_display.cpp @@ -264,6 +264,9 @@ void CLCD::showServicename(std::string name, bool) strncpy(display_text, name.c_str(), sizeof(display_text) - 1); display_text[sizeof(display_text) - 1] = '\0'; upd_display = true; +#if HAVE_ARM_HARDWARE + wake_up(); +#endif } #if HAVE_SPARK_HARDWARE @@ -434,6 +437,9 @@ void CLCD::showVolume(const char vol, const bool update) sprintf(s,"%.*s", volume*g_info.hw_caps->display_xres/100, "================"); #endif display(s); +#if HAVE_ARM_HARDWARE + wake_up(); +#endif vol_active = true; } @@ -450,6 +456,9 @@ void CLCD::showMenuText(const int, const char *text, const int, const bool) strncpy(display_text, tmp.c_str(), sizeof(display_text) - 1); display_text[sizeof(display_text) - 1] = '\0'; upd_display = true; +#if HAVE_ARM_HARDWARE + wake_up(); +#endif } void CLCD::showAudioTrack(const std::string &, const std::string & title, const std::string &) @@ -457,6 +466,9 @@ void CLCD::showAudioTrack(const std::string &, const std::string & title, const if (mode != MODE_AUDIO) return; ShowText(title.c_str()); +#if HAVE_ARM_HARDWARE + wake_up(); +#endif } void CLCD::showAudioPlayMode(AUDIOMODES) @@ -502,6 +514,9 @@ void CLCD::setMode(const MODES m, const char * const) showclock = true; showTime(); } +#if HAVE_ARM_HARDWARE + wake_up(); +#endif } void CLCD::setBrightness(int dimm)