mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
vfd-setup: allow to set scroll_repeats if possible
Signed-off-by: Thilo Graf <dbt@novatux.de>
Origin commit data
------------------
Branch: ni/coolstream
Commit: dbf2fa3f18
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
Signed-off-by: Thilo Graf <dbt@novatux.de>
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
@@ -186,7 +186,7 @@ class CLCD
|
||||
void setBrightnessDeepStandby(int) { return ; };
|
||||
int getBrightnessDeepStandby() { return 0; };
|
||||
|
||||
void setScrollMode(int scoll);
|
||||
void setScrollMode(int scroll_repeats);
|
||||
|
||||
void setContrast(int);
|
||||
int getContrast();
|
||||
|
Reference in New Issue
Block a user