mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
- simple-display: remove obsolete file_exists() checks
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -481,7 +481,7 @@ void CLCD::setMode(const MODES m, const char * const title)
|
|||||||
mode = m;
|
mode = m;
|
||||||
|
|
||||||
setlcdparameter();
|
setlcdparameter();
|
||||||
if ((g_info.hw_caps->display_type == HW_DISPLAY_NONE) && file_exists("/proc/stb/power/powerled"))
|
if (g_info.hw_caps->display_type == HW_DISPLAY_NONE)
|
||||||
proc_put("/proc/stb/power/powerled", "on");
|
proc_put("/proc/stb/power/powerled", "on");
|
||||||
proc_put("/proc/stb/lcd/show_symbols", true);
|
proc_put("/proc/stb/lcd/show_symbols", true);
|
||||||
switch (m) {
|
switch (m) {
|
||||||
@@ -503,7 +503,7 @@ void CLCD::setMode(const MODES m, const char * const title)
|
|||||||
case MODE_SHUTDOWN:
|
case MODE_SHUTDOWN:
|
||||||
showclock = false;
|
showclock = false;
|
||||||
Clear();
|
Clear();
|
||||||
if ((g_info.hw_caps->display_type == HW_DISPLAY_NONE) && file_exists("/proc/stb/power/powerled"))
|
if (g_info.hw_caps->display_type == HW_DISPLAY_NONE)
|
||||||
proc_put("/proc/stb/power/powerled", "off");
|
proc_put("/proc/stb/power/powerled", "off");
|
||||||
proc_put("/proc/stb/lcd/show_symbols", false);
|
proc_put("/proc/stb/lcd/show_symbols", false);
|
||||||
break;
|
break;
|
||||||
@@ -514,7 +514,7 @@ void CLCD::setMode(const MODES m, const char * const title)
|
|||||||
setled(0, 1);
|
setled(0, 1);
|
||||||
showclock = true;
|
showclock = true;
|
||||||
showTime(true);
|
showTime(true);
|
||||||
if ((g_info.hw_caps->display_type == HW_DISPLAY_NONE) && file_exists("/proc/stb/power/powerled"))
|
if (g_info.hw_caps->display_type == HW_DISPLAY_NONE)
|
||||||
proc_put("/proc/stb/power/powerled", "off");
|
proc_put("/proc/stb/power/powerled", "off");
|
||||||
proc_put("/proc/stb/lcd/show_symbols", false);
|
proc_put("/proc/stb/lcd/show_symbols", false);
|
||||||
timeout_cnt = 0;
|
timeout_cnt = 0;
|
||||||
|
Reference in New Issue
Block a user