From 184706abfa809e8d8b6452a599313fe0e341c980 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 1 Dec 2005 09:49:12 +0000 Subject: rotor running detection should now work ( yet only with measure input power ) --- lib/dvb/frontend.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lib/dvb/frontend.cpp') diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp index a05963cd..795841b8 100644 --- a/lib/dvb/frontend.cpp +++ b/lib/dvb/frontend.cpp @@ -292,6 +292,10 @@ eDVBFrontend::eDVBFrontend(int adap, int fe, int &ok): m_type(-1), m_fe(fe), m_c for (int i=0; isetRotorMoving(false); setSecSequencePos(m_sec_sequence.current()->steps); } else @@ -553,6 +558,7 @@ void eDVBFrontend::tuneLoop() // called by m_tuneTimer eDebug("[SEC] rotor %s step %d ok", txt, cmd.okcount); if ( cmd.okcount > 6 ) { + m_sec->setRotorMoving(cmd.direction); eDebug("[SEC] rotor is %s", txt); if (setSecSequencePos(cmd.steps)) break; @@ -611,6 +617,8 @@ RESULT eDVBFrontend::getFrontendType(int &t) RESULT eDVBFrontend::tune(const iDVBFrontendParameters &where) { + eDebug("(%d)tune", m_fe); + if (m_type == -1) return -ENODEV; @@ -1009,6 +1017,8 @@ RESULT eDVBFrontend::setData(int num, int val) { if ( num < (int)(sizeof(m_data)/sizeof(int)) ) { + if ( num == 0 ) + eDebug("(%d) set csw %02x", m_fe, val); m_data[num] = val; return 0; } -- cgit v1.2.3