From a4cadca93a60d5a5019d2a063e39d66f50e576e2 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Fri, 26 May 2006 10:44:00 +0000 Subject: fix one step east / one step west option add ability to (re)enable rotor limits add ability to turn rotor to reference position (goto 0) --- lib/dvb/frontend.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/dvb/frontend.cpp') diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp index b85fbc29..220d3e87 100644 --- a/lib/dvb/frontend.cpp +++ b/lib/dvb/frontend.cpp @@ -91,6 +91,7 @@ void eDVBDiseqcCommand::setCommandString(const char *str) eDebug("invalid diseqc command string length (string is to long)"); return; } + eDebugNoNewLine("send diseqc:"); unsigned char val=0; for (int i=0; i < slen; ++i) { @@ -107,11 +108,13 @@ void eDVBDiseqcCommand::setCommandString(const char *str) if ( i % 2 ) { val |= c; + eDebugNoNewLine("%02x", val); data[i/2] = val; } else val = c << 4; } + eDebug(""); len = slen/2; } @@ -543,12 +546,16 @@ void eDVBFrontend::feEvent(int w) #endif { state = stateLock; + m_data[CSW] = m_data[NEW_CSW]; + m_data[UCSW] = m_data[NEW_UCSW]; + m_data[TONEBURST] = m_data[NEW_TONEBURST]; } else { if (m_tuning) state = stateTuning; else { + eDebug("stateLostLock"); state = stateLostLock; m_data[CSW] = m_data[UCSW] = m_data[TONEBURST] = -1; // reset diseqc } -- cgit v1.2.3