diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-03-03 23:22:39 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-03-03 23:22:39 +0000 |
| commit | 67c5da081cdccf94b1da1792b8388786c4798101 (patch) | |
| tree | e1d7a997fb9b22b5dcc6f4c99586c6c5e507265a /lib/dvb/sec.cpp | |
| parent | d26dbdee8fb2a5ca6fa87878d9daffaf7d3575a8 (diff) | |
| download | enigma2-67c5da081cdccf94b1da1792b8388786c4798101.tar.gz enigma2-67c5da081cdccf94b1da1792b8388786c4798101.zip | |
fix ugly bug in satellite / lnb / tuner config
thanks for reporting to eagle
Diffstat (limited to 'lib/dvb/sec.cpp')
| -rw-r--r-- | lib/dvb/sec.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dvb/sec.cpp b/lib/dvb/sec.cpp index 6d11f44e..32bc6651 100644 --- a/lib/dvb/sec.cpp +++ b/lib/dvb/sec.cpp @@ -783,7 +783,7 @@ RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA RESULT eDVBSatelliteEquipmentControl::clear() { - for (int i=0; i < m_lnbidx; ++i) + for (int i=0; i <= m_lnbidx; ++i) { m_lnbs[i].m_satellites.clear(); m_lnbs[i].tuner_mask = 0; @@ -825,7 +825,7 @@ RESULT eDVBSatelliteEquipmentControl::setDependencyPointers( int tu1, int tu2, i /* LNB Specific Parameters */ RESULT eDVBSatelliteEquipmentControl::addLNB() { - if ( m_lnbidx < (int)(sizeof(m_lnbs) / sizeof(eDVBSatelliteLNBParameters))) + if ( (m_lnbidx+1) < (int)(sizeof(m_lnbs) / sizeof(eDVBSatelliteLNBParameters))) m_curSat=m_lnbs[++m_lnbidx].m_satellites.end(); else { |
