git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update sv, hy, lt, pl, fr language
[enigma2.git]
/
lib
/
driver
/
misc_options.cpp
diff --git
a/lib/driver/misc_options.cpp
b/lib/driver/misc_options.cpp
index ecb7bdb12800ba43692fe2366cb2f53cbb786b58..c567878c7789773bf0984d266642b9a4ed7a868b 100644
(file)
--- a/
lib/driver/misc_options.cpp
+++ b/
lib/driver/misc_options.cpp
@@
-39,6
+39,18
@@
int Misc_Options::set_12V_output(int state)
return 0;
}
return 0;
}
+bool Misc_Options::detected_12V_output()
+{
+ int fd = open("/proc/stb/misc/12V_output", O_WRONLY);
+ if (fd < 0)
+ {
+ eDebug("couldn't open /proc/stb/misc/12V_output");
+ return false;
+ }
+ close(fd);
+ return true;
+}
+
Misc_Options *Misc_Options::getInstance()
{
return instance;
Misc_Options *Misc_Options::getInstance()
{
return instance;