diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-06-02 14:35:58 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-06-02 14:35:58 +0000 |
| commit | f97a4e53dcd9321cfe4d026f8efac3a3fea1cb6a (patch) | |
| tree | 87447df391296618793c1bd99761d9ec1d681a64 /lib/dvb | |
| parent | 7ee3f3b8aaf43c8c712ce1c4c1d8b8c52e692e12 (diff) | |
| download | enigma2-f97a4e53dcd9321cfe4d026f8efac3a3fea1cb6a.tar.gz enigma2-f97a4e53dcd9321cfe4d026f8efac3a3fea1cb6a.zip | |
dont use and show input power measurement (for rotor running detection),
when the hardware doesn't support it
Diffstat (limited to 'lib/dvb')
| -rw-r--r-- | lib/dvb/dvb.cpp | 9 | ||||
| -rw-r--r-- | lib/dvb/dvb.h | 1 | ||||
| -rw-r--r-- | lib/dvb/sec.h | 2 |
3 files changed, 12 insertions, 0 deletions
diff --git a/lib/dvb/dvb.cpp b/lib/dvb/dvb.cpp index f5eadda0..41c4f3ca 100644 --- a/lib/dvb/dvb.cpp +++ b/lib/dvb/dvb.cpp @@ -748,6 +748,15 @@ error: return ret; } +bool eDVBResourceManager::canMeasureFrontendInputPower() +{ + for (eSmartPtrList<eDVBRegisteredFrontend>::iterator i(m_frontend.begin()); i != m_frontend.end(); ++i) + { + return i->m_frontend->readInputpower() >= 0; + } + return false; +} + class eDVBChannelFilePush: public eFilePushThread { public: diff --git a/lib/dvb/dvb.h b/lib/dvb/dvb.h index c71a4d1b..d2148bc9 100644 --- a/lib/dvb/dvb.h +++ b/lib/dvb/dvb.h @@ -215,6 +215,7 @@ public: #ifdef SWIG public: #endif + bool canMeasureFrontendInputPower(); PSignal1<void,int> frontendUseMaskChanged; SWIG_VOID(RESULT) allocateRawChannel(eUsePtr<iDVBChannel> &SWIG_OUTPUT, int slot_index); PyObject *setFrontendSlotInformations(SWIG_PYOBJECT(ePyObject) list); diff --git a/lib/dvb/sec.h b/lib/dvb/sec.h index 9522426b..2241e00e 100644 --- a/lib/dvb/sec.h +++ b/lib/dvb/sec.h @@ -270,6 +270,7 @@ private: eSmartPtrList<eDVBRegisteredFrontend> &m_avail_frontends; bool m_rotorMoving; int m_not_linked_slot_mask; + bool m_canMeasureInputPower; #endif #ifdef SWIG eDVBSatelliteEquipmentControl(); @@ -324,6 +325,7 @@ public: PyObject *get_exclusive_satellites(int tu1, int tu2); void setRotorMoving(bool); // called from the frontend's bool isRotorMoving(); + bool canMeasureInputPower() { return m_canMeasureInputPower; } }; #endif |
