vfd-setup: allow to set scroll_repeats if possible

Origin commit data
------------------
Branch: ni/coolstream
Commit: 19ac5b0f0a
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-13 (Mon, 13 Nov 2017)

Origin message was:
------------------
- vfd-setup: allow to set scroll_repeats if possible

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-11-13 22:47:11 +01:00
parent 8df8b37dc2
commit 82064eb49c
8 changed files with 28 additions and 9 deletions

View File

@@ -582,15 +582,15 @@ int CLCD::getBrightnessStandby()
return 0;
}
void CLCD::setScrollMode(int scroll)
void CLCD::setScrollMode(int scroll_repeats)
{
printf("CLCD::%s scroll:%d\n", __func__, scroll);
if (scroll)
printf("CLCD::%s scroll_repeats:%d\n", __func__, scroll_repeats);
if (scroll_repeats)
{
proc_put("/proc/stb/lcd/initial_scroll_delay", "1000");
proc_put("/proc/stb/lcd/final_scroll_delay", "1000");
proc_put("/proc/stb/lcd/scroll_delay", "150");
proc_put("/proc/stb/lcd/scroll_repeats", "3");
proc_put("/proc/stb/lcd/scroll_repeats", to_string(scroll_repeats).c_str());
}
else
{