X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/a4cadca93a60d5a5019d2a063e39d66f50e576e2..60c8087aa78a5fa24617b0f2ef86fa54f6083101:/lib/dvb/frontend.cpp diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp index 220d3e87..e495b1c5 100644 --- a/lib/dvb/frontend.cpp +++ b/lib/dvb/frontend.cpp @@ -91,7 +91,6 @@ 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) { @@ -108,13 +107,11 @@ 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; } @@ -546,9 +543,6 @@ 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) @@ -1008,6 +1002,7 @@ PyObject *eDVBFrontend::readTransponderData(bool original) eDebug("FE_GET_FRONTEND (%m)"); else { + const FRONTENDPARAMETERS &parm = original ? this->parm : front; tmp = "INVERSION_AUTO"; switch(parm_inversion) { @@ -1685,6 +1680,12 @@ RESULT eDVBFrontend::tune(const iDVBFrontendParameters &where) int res=0; + if (!m_sn) + { + eDebug("no frontend device opened... do not try to tune !!!"); + return -ENODEV; + } + if (m_type == -1) return -ENODEV;