armbox: fix dimming vfd

This commit is contained in:
TangoCash
2017-10-12 00:36:45 +02:00
committed by Thilo Graf
parent 3b5f5f3bfd
commit db6f4ba08d

View File

@@ -264,6 +264,9 @@ void CLCD::showServicename(std::string name, bool)
strncpy(display_text, name.c_str(), sizeof(display_text) - 1); strncpy(display_text, name.c_str(), sizeof(display_text) - 1);
display_text[sizeof(display_text) - 1] = '\0'; display_text[sizeof(display_text) - 1] = '\0';
upd_display = true; upd_display = true;
#if HAVE_ARM_HARDWARE
wake_up();
#endif
} }
#if HAVE_SPARK_HARDWARE #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, "================"); sprintf(s,"%.*s", volume*g_info.hw_caps->display_xres/100, "================");
#endif #endif
display(s); display(s);
#if HAVE_ARM_HARDWARE
wake_up();
#endif
vol_active = true; 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); strncpy(display_text, tmp.c_str(), sizeof(display_text) - 1);
display_text[sizeof(display_text) - 1] = '\0'; display_text[sizeof(display_text) - 1] = '\0';
upd_display = true; upd_display = true;
#if HAVE_ARM_HARDWARE
wake_up();
#endif
} }
void CLCD::showAudioTrack(const std::string &, const std::string & title, const std::string &) 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) if (mode != MODE_AUDIO)
return; return;
ShowText(title.c_str()); ShowText(title.c_str());
#if HAVE_ARM_HARDWARE
wake_up();
#endif
} }
void CLCD::showAudioPlayMode(AUDIOMODES) void CLCD::showAudioPlayMode(AUDIOMODES)
@@ -502,6 +514,9 @@ void CLCD::setMode(const MODES m, const char * const)
showclock = true; showclock = true;
showTime(); showTime();
} }
#if HAVE_ARM_HARDWARE
wake_up();
#endif
} }
void CLCD::setBrightness(int dimm) void CLCD::setBrightness(int dimm)