From: Andreas Monzner Date: Wed, 28 Jun 2006 14:34:10 +0000 (+0000) Subject: setVoltage is now possible on -S and -T frontend X-Git-Tag: 2.6.0~3246 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/b0423085db164b3bc28291fab6bd5741182a6859?ds=sidebyside setVoltage is now possible on -S and -T frontend --- diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp index 1318a0c3..1040d7cd 100644 --- a/lib/dvb/frontend.cpp +++ b/lib/dvb/frontend.cpp @@ -1774,7 +1774,7 @@ RESULT eDVBFrontend::connectStateChange(const Slot1 &stateCh RESULT eDVBFrontend::setVoltage(int voltage) { - if (m_type != feSatellite) + if (m_type == feCable) return -1; #if HAVE_DVB_API_VERSION < 3 secVoltage vlt; @@ -1816,7 +1816,7 @@ RESULT eDVBFrontend::setVoltage(int voltage) #if HAVE_DVB_API_VERSION < 3 return ::ioctl(m_secfd, SEC_SET_VOLTAGE, vlt); #else - if (::ioctl(m_fd, FE_ENABLE_HIGH_LNB_VOLTAGE, increased) < 0) + if (m_type == feSatellite && ::ioctl(m_fd, FE_ENABLE_HIGH_LNB_VOLTAGE, increased) < 0) perror("FE_ENABLE_HIGH_LNB_VOLTAGE"); return ::ioctl(m_fd, FE_SET_VOLTAGE, vlt); #endif