diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2010-06-28 18:27:26 +0200 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2010-06-28 18:27:26 +0200 |
| commit | baf0a59fa2538724a343aac0082b55d0ac591120 (patch) | |
| tree | 3729052bd5674a78b6e82ba9380e46e2ae388bb5 /lib | |
| parent | 8c3450ff90df7ed4b5eb250000d54a43c54c146e (diff) | |
| download | enigma2-baf0a59fa2538724a343aac0082b55d0ac591120.tar.gz enigma2-baf0a59fa2538724a343aac0082b55d0ac591120.zip | |
add support for /proc/stb/frontend/X/lnb_sense
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dvb/frontend.cpp | 8 | ||||
| -rw-r--r-- | lib/python/Components/NimManager.py | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp index 0081e324..fc2d7ec5 100644 --- a/lib/dvb/frontend.cpp +++ b/lib/dvb/frontend.cpp @@ -1458,9 +1458,11 @@ int eDVBFrontend::readInputpower() return 0; int power=m_slotid; // this is needed for read inputpower from the correct tuner ! char proc_name[64]; - sprintf(proc_name, "/proc/stb/fp/lnb_sense%d", m_slotid); - FILE *f=fopen(proc_name, "r"); - if (f) + char proc_name2[64]; + sprintf(proc_name, "/proc/stb/frontend/%d/lnb_sense", m_slotid); + sprintf(proc_name2, "/proc/stb/fp/lnb_sense%d", m_slotid); + FILE *f; + if ((f=fopen(proc_name, "r")) || (f=fopen(proc_name2, "r"))) { if (fscanf(f, "%d", &power) != 1) eDebug("read %s failed!! (%m)", proc_name); diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py index 2deb2bf7..805be4df 100644 --- a/lib/python/Components/NimManager.py +++ b/lib/python/Components/NimManager.py @@ -1208,7 +1208,7 @@ def InitNimManager(nimmgr): section.latitude = ConfigFloat(default = [50,767], limits = [(0,359),(0,999)]) section.latitudeOrientation = ConfigSelection(latitude_orientation_choices, "north") section.powerMeasurement = ConfigYesNo(default=True) - section.powerThreshold = ConfigInteger(default=hw.get_device_name() == "dm8000" and 15 or 50, limits=(0, 100)) + section.powerThreshold = ConfigInteger(default=hw.get_device_name() == "dm7025" and 50 or 15, limits=(0, 100)) section.turningSpeed = ConfigSelection(turning_speed_choices, "fast") section.fastTurningBegin = ConfigDateTime(default=advanced_lnb_fast_turning_btime, formatstring = _("%H:%M"), increment = 600) section.fastTurningEnd = ConfigDateTime(default=advanced_lnb_fast_turning_etime, formatstring = _("%H:%M"), increment = 600) |
